GLProgramming.com

home :: about :: development guides :: irc :: forums :: search :: paste :: links :: contribute :: code dump

-> Click here to learn how to get live help <-


Manpage of SDL_InitSubSystem

SDL_InitSubSystem

Index
 

NAME

SDL_InitSubSystem- Initialize subsystems  

SYNOPSIS

fB#include "SDL&.h"

fBint fBSDL_InitSubSystemfPfR(fBUint32 flagsfR);  

DESCRIPTION

After SDL has been initialized with fIfBSDL_InitfPfR you may initialize uninitialized subsystems with fBSDL_InitSubSystemfP&. The fBflagsfR parameter is the same as that used in fIfBSDL_InitfPfR&.  

EXAMPLES

f(CW/* Seperating Joystick and Video initialization&. */
SDL_Init(SDL_INIT_VIDEO);
&.
&.
SDL_SetVideoMode(640, 480, 16, SDL_DOUBLEBUF|SDL_FULLSCREEN);
&.
/* Do Some Video stuff */
&.
&.
/* Initialize the joystick subsystem */
SDL_InitSubSystem(SDL_INIT_JOYSTICK);

/* Do some stuff with video and joystick */
&.
&.
&.
/* Shut them both down */
SDL_Quit();fR

 

RETURN VALUE

Returns fB-1fR on an error or fB0fR on success&.  

SEE ALSO

fIfBSDL_InitfPfR, fIfBSDL_QuitfPfR, fIfBSDL_QuitSubSystemfPfR


 

Index

NAME
SYNOPSIS
DESCRIPTION
EXAMPLES
RETURN VALUE
SEE ALSO