Direct Draw - Double Buffering?

snarfblam

Mega-Ultra Chicken
Joined
Jun 10, 2003
Messages
1,832
Location
USA
User Rank
*Expert*
Ive made a fullscreen directdraw program before using page flipping. I want to make a windowed program now, though, so I was thinking the best choice would be double buffering. Am I right?

And if so, could someone give me a simple description as to how exactly to do double buffering, i.e. what objects do i need and what methods should i call when? Im not really looking for code, but more of a basic idea of how double buffering should be implemented.
 
Buffering is pretty much the same as Flipping except you have to use Blt to copy the Backbuffer to Primary surface and the BackBuffer has to be declared as an OFFSCREENPLANE
 
Back
Top