Archived

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

cpp boy

Gdi + Double buffering

Recommended Posts

cpp boy    116
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
psykr    295
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