Double Buffer

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
SystemHalted

Double Buffer

Post by SystemHalted »

I have two questions.
1.How do I plot a pixle to a doublr buffer?
2.How do I display the buffer on my screen?
Thanks.
carbonBased

RE:Double Buffer

Post by carbonBased »

Just like you would when plotting a regular pixel, but instead of writting to memory at 0xA0000, you write to memory your OS has allocated for you.

You display the buffer simply by copying it to 0xA0000.

I wrote a chapter on graphics programming in DJGPP that covers double buffering (or virtual screens, as I call them) which can be found on my web site at http://www.neuraldk.org... might be of some help.

Cheers,
Jeff
SystemHalted

RE:Double Buffer

Post by SystemHalted »

I Figured out how to set up my dblbuffer but i still need these two things please.
1.How do I plot a pixle to a doublr buffer?
2.How do I display the buffer on my screen?

THanks
Post Reply