Jump to content
  • Advertisement

Archived

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

cpp boy

Gdi + Double buffering

This topic is 5308 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
Advertisement
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

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!