![]() -> Click here to learn how to get live help <- |
SDL_InitSubSystemIndexNAMESDL_InitSubSystem- Initialize subsystemsSYNOPSISfB#include "SDL&.h" fBint fBSDL_InitSubSystemfPfR(fBUint32 flagsfR); DESCRIPTIONAfter 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 VALUEReturns fB-1fR on an error or fB0fR on success&. SEE ALSOfIfBSDL_InitfPfR, fIfBSDL_QuitfPfR, fIfBSDL_QuitSubSystemfPfR
Index |