Mail Archives: djgpp/2001/05/12/01:38:35
> From: "Cody" <cody1 AT ktsnet DOT com>
> Newsgroups: comp.os.msdos.djgpp
> Date: Fri, 11 May 2001 17:00:59 -0500
>
> How would I in DJGPP do the following:? I have browsed the allegro game
> library but got nothing out of it (wayyyy too much code). I can do the
> following in 16-bit does apps, but DJGPP's 32-bit protected mode poses a
> problem. Links to the code or just replies with the code would certainly be
> appreciated.
>
> 1. get into different video modes (320x200 w/ 256 colors and more, 320x240
> w/ 256 colors and more, 640x480 w/ 256 colors and more, etc.)?
> 2. put a pixel in those modes (any difference in them...?)?
> 3. get back into 80x25 text mode?
Nate gave you some good answers. I'd like to add that the DJGPP FAQ
list (v2/faq230b.zip from the same place you get DJGPP) explains these
issues in quite some detail in chapters 10 and 18.
> I'm unfamiliar with at&t style asm (plus I'm <beginner at intel style asm),
> and even if I knew at&t style asm I wouldn't be able to do it since I think
> 32-bit protected mode getting into graphics are different than what I have
> to do with turbo c++.
You don't need assembly to do any of the above. Just use C and the
available library functions (some of them were mentioned by Nate,
others are in the FAQ).
- Raw text -