Sign in to follow this  
Specchum

SDL - window switching.

Recommended Posts

What is the recommended way to handle a task switching/minimize/restore event under windows when using SDL under OpenGL? I ask because when my game is running in full screen, task switching causes it to minimize to task bar but there's no way to restore it (or at least I can't figure out how). Secondly, when in windowed mode, minimizing and restore brings the game back but some of the textures are lost. I know I have to reload the textures in such cases but how do I capture the restore event?

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
Try catching a SDL_ActiveEvent. See http://www.libsdl.org/cgi/docwiki.cgi/SDL_5fActiveEvent

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this