|
From: Elias P. <Eli...@ao...> - 2000-12-28 21:32:25
|
If you want to do a graphics application, there are some reasons = (hardware-acceleration, 32bit support, support for libraries...) why i = would suggest you to switch to another compiler (Dev-C++ of course, or = at least DJGPP). But anyway, if you are using Turbo C++, didn't it come = with a graphics library ? If i remember right it is the library with the = .BGI drivers - i think you can get a driver for VESA (for 640x480x256 = mode), and then just use setactivepage() and setvisiblepage() functions = to do page flipping. Oh, well... that's sound kinda cool. I'm doing something like this in my programs; unsigned char *VGA =3D (unsigned char *) MK_FP(0xA000, 0); unsigned char *BUFF =3D NULL; BUFF =3D new unsigned char[64000]; 320x200 =3D 64000 draw_stuff_to_buff( ); __fmemcpy(VGA, BUFF, 64000); So, is there anyone who has something to use for some kewl and fast = graphics for games in min. 640x480. I'm using Turbo C++ 3.0 Thanks! |