Date: Sat, 12 May 2001 08:37:13 +0300 From: "Eli Zaretskii" Sender: halo1 AT zahav DOT net DOT il To: "Cody" Message-Id: <9003-Sat12May2001083713+0300-eliz@is.elta.co.il> X-Mailer: Emacs 20.6 (via feedmail 8.3.emacs20_6 I) and Blat ver 1.8.9 CC: djgpp AT delorie DOT com In-reply-to: <3afc6377@leia.ktsnet.com> (cody1@ktsnet.com) Subject: Re: [OT] graphics routines References: <3afc6377 AT leia DOT ktsnet DOT com> Reply-To: djgpp AT delorie DOT com Errors-To: nobody AT delorie DOT com X-Mailing-List: djgpp AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk > From: "Cody" > 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 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).