Jump to content
  • Advertisement
Sign in to follow this  
ayampanggang

[SDL] Hiding / showing a blitted surface

This topic is 4090 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

Hello all! Say I have a surface A and B. A is a small surface, and B is big. Then, i blit A on top of B. So now, A sits on top of a portions of B surface. But suddenly i want to hide A. How is this possible, without having to reblit B ontop of A? Thank you very much!

Share this post


Link to post
Share on other sites
Advertisement
When you blit a surface, you copy its data onto the screen (or whichever surface you're blitting to) and overwrite whatever was there before. You haven't moved the surface in any way, nor can it be hidden as such.

The usual method is to continually redraw everything, generating many complete frames of graphics per second.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

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

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!