delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/11/28/16:44:04

Message-Id: <199711282135.IAA03401@rabble.uow.edu.au>
Subject: Re: Newbie Needs Help
To: matthew DOT krause AT juno DOT com (Matthew R Krause)
Date: Sat, 29 Nov 1997 08:35:26 +1100 (EST)
Cc: djgpp AT delorie DOT com (DJGPP)
In-Reply-To: <19971129.101142.16006.1.matthew.krause@juno.com> from Matthew R Krause at "Nov 29, 97 10:11:41 am"
From: Brett Porter <bporter AT rabble DOT uow DOT edu DOT au>
MIME-Version: 1.0

> 
> Sorry to ask such an obvious question, but I've new to C/DJGPP and just
> starting graphics work. But, Anyway does anyone know how to :
> 1 .Switch from text to graphics mode using DJGPP
> 2. Change a single pixel from "OFF" to "ON"
> Thanks in advance
>

Graphics programming is a complex task, and protected mode is probably the
hardest spot to start doing it in. Luckily for you there is a brilliant
graphics library called Allegro for DJGPP, which has functions such as
putpixel which you are looking for. It also supports sound, music,
truecolour super vga modes, joystick, keyboard, timers, FLI files, reading
BMP, TGA, PCX, LBM files, datafiles, file compression, and the list goes
on...

What's more, it comes with the source, so if you don't like using 3rd party
libraries and want to do it all yourself, you can pull it to pieces.

For some more general programming VGA information I would suggest getting
Denthor's VGA tutorials (written in pascal) or the C++ equivalents (they are
not for DJGPP, but they would not be too easy to port to it, if you look in
the FAQ and ask the occasional question here). They reside in the X2FTP
archive, the address of which is something similar to this... (if it is
wrong, try searching YAHOO, it brings it up)

ftp://x2ftp.oulu.fi/pub/msdos/programming/

HTH, and good luck

Brett

-- 
"Those here who believe in telekenesis... raise MY hand!"
--
Brett Porter		--		blp01 AT uow DOT edu DOT au

	http://www.geocities.com/SiliconValley/Park/7483
	  Programming Stuff - DJGPP - The PAGOS Project

	http://www.geocities.com/CollegePark/Union/3596
		    Humour, University Life

- Raw text -


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