Scroll to navigation

SDL_Init(3) SDL API Reference SDL_Init(3)

NAME

SDL_Init - Initializes SDL

SYNOPSIS

#include "SDL.h"

int SDL_Init(Uint32 flags);

DESCRIPTION

Initializes SDL. This should be called before all other SDL functions. The flags parameter specifies what part(s) of SDL to initialize.

Initializes the timer subsystem.
Initializes the audio subsystem.
Initializes the video subsystem.
Initializes the cdrom subsystem.
Initializes the joystick subsystem.
Initialize all of the above.
Prevents SDL from catching fatal signals.

RETURN VALUE

Returns -1 on an error or 0 on success.

SEE ALSO

SDL_Quit, SDL_InitSubSystem

Tue 11 Sep 2001, 23:00 SDL