grfx in pmode

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
iota

grfx in pmode

Post by iota »

ok i am using djgpp.
the draphics data i have is rgb vlause in a memory buffer.
what i need to know is how i have get that data from the memory buffer and display it on the screen the routiens to display the data has to be fast.
any motre info needed i will suply
CarbonBased

RE:grfx in pmode

Post by CarbonBased »

I wrote a chapter about graphics in protected mode, using DJGPP specifically.

You can take a look at it here:
http://www.neuraldk.org/cgi-bin/documen ... ppGraphics

You should note that much of this is OS specific (using the Vesa BIOS, for example).  All my routines are fast (I've profiled many different versions), and if you wish, you can take a look at the source code for Petal (my graphics library) for some hand optimized assembly routines.

BTW: in short, all you need to do is _copy_ is (ie, memcpy); assuming you've set up the video mode correctly.

Cheers,
Jeff
iota

RE:grfx in pmode

Post by iota »

thanks very much i knew you guys would help.
i will credit you ion my final app.
iota

RE:grfx in pmode

Post by iota »

thanks very much i knew you guys would help.
i will credit you ion my final app.
Post Reply