2001-06-10 19:31:57 +00:00
.TH "SDL_InitSubSystem" "3" "Sun 10 Jun 2001, 19:41" "SDL" "SDL API Reference"
2001-04-26 16:45:43 +00:00
.SH "NAME"
SDL_InitSubSystem\- Initialize subsystems
.SH "SYNOPSIS"
.PP
\fB #include "SDL\& .h"
.sp
\fB int \fB SDL_InitSubSystem\fP \fR (\fB Uint32 flags\fR );
.SH "DESCRIPTION"
.PP
After SDL has been initialized with \fI \fB SDL_Init\fP \fR you may initialize uninitialized subsystems with \fB SDL_InitSubSystem\fP \& . The \fB flags\fR parameter is the same as that used in \fI \fB SDL_Init\fP \fR \& .
.SH "EXAMPLES"
.PP
.nf
\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
.fi
.PP
.SH "RETURN VALUE"
.PP
Returns \fB -1\fR on an error or \fB 0\fR on success\& .
.SH "SEE ALSO"
.PP
\fI \fB SDL_Init\fP \fR , \fI \fB SDL_Quit\fP \fR , \fI \fB SDL_QuitSubSystem\fP \fR
2001-06-10 19:31:57 +00:00
. ..\" created by instant / docbook-to-man, Sun 10 Jun 2001 , 19 :41