delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/07/19/22:30:12

Xref: news2.mv.net comp.os.msdos.djgpp:6180
From: mohan AT stealth DOT net (Mohan Khurana)
Newsgroups: comp.os.msdos.djgpp
Subject: Graphics w/o GRX
Date: Sat, 20 Jul 1996 00:01:01 GMT
Organization: Stealth Communications, NYC.
Lines: 35
Message-ID: <4sou0p$4va@news.stealth.net>
NNTP-Posting-Host: mohan.nyc.stealth.net
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

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.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019