Mail Archives: djgpp/1998/05/15/21:41:06
Alexander Poquet writes:
>I can do mode 13h w/o trouble, but it would be desirable to use
>something in a higher resolution: 640x480x256 would be ideal.
>But I'm not sure how this is done;
Every SVGA card is different, so there is no single method that is ideal
for all. To save having to write different code for every possible
chipset, most people opt to use the VESA driver API, but even this
leaves some choices: should you use the VESA 1.2 real mode interface
(slow), or the VESA 2.0 bank switching system (requires the user to have
a VBE 2.0 driver installed), or perhaps a linear framebuffer? (these are
not possible on all hardware). To make your program run well on any
machine, you really need to support all of these methods...
For information about how VESA works, start with the official spec (this
can be found all over the place, including x2ftp or scitechsoft.com). It
might also be useful to look at the graphics section in the DJGPP User's
Guide (www.delorie.com).
--
Shawn Hargreaves - shawn AT talula DOT demon DOT co DOT uk - http://www.talula.demon.co.uk/
"Miracles are nothing if you've got the wrong intentions" - Mike Keneally
- Raw text -