YourFace
<span style="color:#9C9C9C;"><strong>Runner Up - T
- Reaction score
- 91
Code:
else if( event.type == SDL_ACTIVEEVENT )
{
//If the window was iconified or restored
if( event.active.state & SDL_APPACTIVE ) //what would that ampersand do
{
//If the application is no longer active
if( event.active.gain == 0 )
{
SDL_WM_SetCaption( "Window Event Test: Iconified", NULL );
}
else
{
SDL_WM_SetCaption( "Window Event Test", NULL );
}
}
Code:
if(event.type == SDL_VIDEORESIZE)
{
screen = SDL_SetVideoMode(event.resize.w, event.resize.h, SCREEN_BPP, SDL_SWSURFACE | SDL_RESIZABLE); //what would that bitwise operator do
if (screen == NULL)
{
windowOK = false;
return;
}
}
what would the ampersand and | operator do? i added comments next to the parenthesis that they're in.