Go to main content

man pages section 3: Library Interfaces and Headers

Exit Print View

Updated: Thursday, June 13, 2019
 
 

SDL_InitSubSystem (3)

Name

SDL_InitSubSystem - Initialize subsystems

Synopsis

#include "SDL.h"

int SDL_InitSubSystem(Uint32 flags);

Description

SDL_InitSubSystem(3)           SDL API Reference          SDL_InitSubSystem(3)



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 unini-
       tialized 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.


ATTRIBUTES
       See attributes(7) for descriptions of the following attributes:


       +---------------+------------------+
       |ATTRIBUTE TYPE | ATTRIBUTE VALUE  |
       +---------------+------------------+
       |Availability   | library/sdl      |
       +---------------+------------------+
       |Stability      | Volatile         |
       +---------------+------------------+
SEE ALSO
       SDL_Init, SDL_Quit, SDL_QuitSubSystem



NOTES
       This     software     was    built    from    source    available    at
       https://github.com/oracle/solaris-userland.   The  original   community
       source        was        downloaded        from        https://www.lib-
       sdl.org/release/SDL-1.2.15.tar.gz

       Further information about this software can be found on the open source
       community website at https://www.libsdl.org/.



SDL                         Tue 11 Sep 2001, 23:00        SDL_InitSubSystem(3)