Quantcast
Channel: GameDev.net
Viewing all articles
Browse latest Browse all 16874

Making a double buffer global

$
0
0

I don't want to clutter up the other thread, so I made a new one just for this topic. Can I please get an explanation of making a 'global' double buffer? I'm having trouble visualising the implementation.

From what I've been able to gather and as it's been pointed out, my code is creating / destroying the bitmap used as the buffer each time the DrawMain() function gets called. I've come up with the following; modified from my previous attempt. Going by my understanding, I put hdcBuffer = CreateCompatibleDC( hdc ); and destroy the buffer on exit.

If …


Viewing all articles
Browse latest Browse all 16874

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>