Xref: news2.mv.net comp.os.msdos.djgpp:6194 From: flyboy AT ari DOT net (Nathaniel Meo) Newsgroups: comp.os.msdos.djgpp Subject: Re: Graphics w/o GRX Date: Sat, 20 Jul 1996 03:12:16 GMT Organization: ARInternet, Corp. Lines: 43 Message-ID: <4spisa$hu2@ari.ari.net> References: <4sou0p$4va AT news DOT stealth DOT net> NNTP-Posting-Host: flyboy.ari.net To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp mohan AT stealth DOT net (Mohan Khurana) wrote: >Now... I want to try to do some graphics without using GRX, JLIB, BGI, >and all those other libraries because I'd like to have some experience >in figuring out how to work with both ASM and C. I also think that it >would be better for me to do graphics the hard way because it might >help me if I ever switch to a UNIX platform, like SGI or SUN. >Now, so far, I have been able to set the graphics mode to 13h by doing >the following code: >asm (" > movw $0x0013, %ax > int $0x10 >"); >Okay. that successfully gets me into mode 13h. When my program exits, >the DOS prompt is now very large and very bad looking. The quality of >the text looks rather like CGA graphics, very bad. >Question 1: Is there any way to get a better graphics mode? I am >looking for maybe a list of the different modes and their >correstponding resolutions. >Okay... now I have gotten into getting the graphics mode up, I want to >start to get into doing some real graphics. >Question 2: Is there any way to change the background to a color? >I am looking for a way that maybe communicates with the computer >directly, I would preffer not to use conio.h or dos.h. >Question 3: Is there any way to make a colored line? >Again, I would preffer not to use the PC specific header files, not >because I hate DOS, just because I'd like to learn more ASM, and get >into more computer graphics. First thing, get a copy of Ralf Brown Interrupt list for info on interrupts and their options. This includes a list of all the video modes for the PC. Also check out http://remus.rutgers.edu/~avly/djgpp.html for info on assembly and graphics programming in DJGPP.