Tao.Sdl SDK Documentation

Sdl.SDL_InitSubSystem Method 

Initializes specified subsystems.

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

Parameters

flags

Specifies what part(s) of SDL to initialize:

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

Return Value

Returns -1 on an error or 0 on success.

Remarks

After SDL has been initialized with SDL_Init you may initialize any uninitialized subsystems with SDL_InitSubSystem.

Binds to C-function call in SDL.h:

extern DECLSPEC int SDLCALL SDL_InitSubSystem(Uint32 flags)

See Also

Sdl Class | Tao.Sdl Namespace | SDL_Init | SDL_Quit | SDL_QuitSubSystem