Mail Archives: djgpp/1997/11/28/16:44:04
>
> 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 -