1SDL_InitSubSystem(3)           SDL API Reference          SDL_InitSubSystem(3)
2
3
4

NAME

6       SDL_InitSubSystem- Initialize subsystems
7

SYNOPSIS

9       #include "SDL.h"
10
11       int SDL_InitSubSystem(Uint32 flags);
12

DESCRIPTION

14       After  SDL has been initialized with SDL_Init you may initialize uniniā€
15       tialized subsystems with SDL_InitSubSystem. The flags parameter is  the
16       same as that used in SDL_Init.
17

EXAMPLES

19       /* Seperating Joystick and Video initialization. */
20       SDL_Init(SDL_INIT_VIDEO);
21       .
22       .
23       SDL_SetVideoMode(640, 480, 16, SDL_DOUBLEBUF|SDL_FULLSCREEN);
24       .
25       /* Do Some Video stuff */
26       .
27       .
28       /* Initialize the joystick subsystem */
29       SDL_InitSubSystem(SDL_INIT_JOYSTICK);
30
31       /* Do some stuff with video and joystick */
32       .
33       .
34       .
35       /* Shut them both down */
36       SDL_Quit();
37

RETURN VALUE

39       Returns -1 on an error or 0 on success.
40

SEE ALSO

42       SDL_Init, SDL_Quit, SDL_QuitSubSystem
43
44
45
46SDL                         Tue 11 Sep 2001, 23:00        SDL_InitSubSystem(3)
Impressum