Header Ads Widget

[MAN] SDL_InitSubSystem

Content-type: text/html; charset=UTF-8 Man page of SDL_InitSubSystem

SDL_InitSubSystem

Section: SDL API Reference (3)
Updated: Tue 11 Sep 2001, 23:00
Index Return to Main Contents
 

NAME

SDL_InitSubSystem - Initialize subsystems  

SYNOPSIS

#include "SDL.h"

int SDL_InitSubSystem(Uint32 flags);  

DESCRIPTION

After SDL has been initialized with SDL_Init you may initialize uninitialized subsystems with SDL_InitSubSystem. The flags parameter is the same as that used in SDL_Init.  

EXAMPLES

/* 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();

 

RETURN VALUE

Returns -1 on an error or 0 on success.  

SEE ALSO

SDL_Init, SDL_Quit, SDL_QuitSubSystem


 

Index

NAME
SYNOPSIS
DESCRIPTION
EXAMPLES
RETURN VALUE
SEE ALSO

This document was created by man2html, using the manual pages.
Time: 04:45:51 GMT, September 16, 2022

댓글 쓰기

0 댓글