![]() |
![]()
| ![]() |
![]()
NAMESDL_WasInit - Check which subsystems are initialized SYNOPSIS#include "SDL.h" Uint32 SDL_WasInit(Uint32 flags); DESCRIPTIONSDL_WasInit allows you to see which SDL subsytems have been initialized. flags is a bitwise OR'd combination of the subsystems you wish to check (see SDL_Init for a list of subsystem flags). RETURN VALUESDL_WasInit returns a bitwised OR'd combination of the initialized subsystems. EXAMPLES/* Here are several ways you can use SDL_WasInit() */ /* Get init data on all the subsystems */ Uint32 subsystem_init; subsystem_init=SDL_WasInit(SDL_INIT_EVERYTHING); if(subsystem_init&SDL_INIT_VIDEO) SEE ALSOSDL_Init, SDL_Subsystem
|