Tao.Sdl SDK Documentation

Sdl.SDL_WasInit Method 

Checks which SDL subsystems are initialized.

[Visual Basic]
Public Shared Function SDL_WasInit( _
   ByVal flags As Integer _
) As Integer
[C#]
public static int SDL_WasInit(
   int flags
);

Parameters

flags

Specifies the subsystems you wish to check:

Flag Description
SDL_INIT_TIMER The timer subsystem.
SDL_INIT_AUDIO The audio subsystem.
SDL_INIT_VIDEO The video subsystem.
SDL_INIT_CDROM The CD-ROM subsystem.
SDL_INIT_JOYSTICK The joystick subsystem.
SDL_INIT_EVERYTHING All subsystems.
SDL_INIT_NOPARACHUTE Prevents SDL from catching fatal signals.
SDL_INIT_EVENTTHREAD Not supported on all OS's.

Return Value

A bitwised OR'd combination of the initialized subsystems.

Remarks

SDL_WasInit allows you to see which SDL subsytems have been initialized.

Binds to C-function call in SDL.h:

extern DECLSPEC Uint32 SDLCALL SDL_WasInit(Uint32 flags)

See Also

Sdl Class | Tao.Sdl Namespace | SDL_Init | SDL_InitSubSystem