[SDL] SDL 1.3 checking if a window is shown or not

Alex Barry alex.barry at gmail.com
Tue Jul 20 10:59:17 PDT 2010


Is this the proper way to do it:

int window_visible = (SDL_GetWindowFlags( context->window ) &
SDL_WINDOW_SHOWN);

Or does SDL_GetWindowFlags() only look at the initialization flags?  If
that's the case, I can manually keep track of it, but I was just wondering
out of convenience.

Also as an tangent of the question, do SDL_ShowWindow() and SDL_HideWindow()
change the flags?

Thanks,
-Alex
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20100720/aa66820a/attachment-0007.htm>


More information about the SDL mailing list