1SDL_Init(3) SDL API Reference SDL_Init(3)
2
3
4
6 SDL_Init - Initializes SDL
7
9 #include "SDL.h"
10
11 int SDL_Init(Uint32 flags);
12
14 Initializes SDL. This should be called before all other SDL functions.
15 The flags parameter specifies what part(s) of SDL to initialize.
16
17 SDL_INIT_TIMER Initializes the timer subsystem.
18
19 SDL_INIT_AUDIO Initializes the audio subsystem.
20
21 SDL_INIT_VIDEO Initializes the video subsystem.
22
23 SDL_INIT_CDROM Initializes the cdrom subsystem.
24
25 SDL_INIT_JOYSTICK Initializes the joystick subsystem.
26
27 SDL_INIT_EVERYTHING Initialize all of the above.
28
29 SDL_INIT_NOPARACHUTE
30 Prevents SDL from catching fatal signals.
31
32 SDL_INIT_EVENTTHREAD
33
35 Returns -1 on an error or 0 on success.
36
38 SDL_Quit, SDL_InitSubSystem
39
40
41
42SDL Tue 11 Sep 2001, 23:00 SDL_Init(3)