Archived

This topic is now archived and is closed to further replies.

Gdi + Double buffering

This topic is 5126 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I am currently making a game engine in gdi and evrything is about done I have finished the GDIWRAPPER and that stuff, but there only one thing anoying me. When I make bitmap transparent they start to make some bullshit. In directdraw I used flipping but their seems to not have this in gdi.( Is that true if not plz tell me how). So I have to go whit double buffering and personnaly I prefer flippin and never learned double buffering. So I''m asking can someone please help me whit doubble bufferin a tutorial or only a code would be ok. Thanks in advance. Kevin

Share this post


Link to post
Share on other sites
If you''re doing double buffering yourself (i.e., GDIWRAPPER is your own class and not some standard Win32 API that I haven''t heard about), you have to actually blit the back buffer to the front buffer. On every frame, you have to copy the back surface to the front, it won''t just flip the surfaces for you automatically.

Share this post


Link to post
Share on other sites
That ok I just found a couple of minutes ago. But thanks. And GDIWRAPPER is my own class.

Kevin

Share this post


Link to post
Share on other sites