Skip to main content
GameDev.net gamedev.net
🔒 Locked

Gdi + Double buffering

Started by cpp boy Jan 5, 2004 at 6:11 PM 1 replies 300+ views
Original Post
cpp boy
cpp boy
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
Kevin
psykr
psykr
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.
cpp boy
cpp boy
That ok I just found a couple of minutes ago. But thanks. And GDIWRAPPER is my own class.

Kevin
Kevin

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.