Skip to content
supermaximo93 edited this page Sep 18, 2011 · 3 revisions

C declaration
void initSDL( uint32_t flags );

Pascal declaration
procedure initSDL( flags : cardinal );


Parameters
flags: Specifies which SDL subsystems to initialise


Description
Initialises SDL with the specified flags to initialise various SDL subsystems. Multiple flags can be used with a bitwise OR. See the SDL documentation for more information. If in doubt, just use SDL_INIT_EVERYTHING.

The following flags can be used:

  • SDL_INIT_TIMER
  • SDL_INIT_AUDIO
  • SDL_INIT_VIDEO
  • SDL_INIT_CDROM
  • SDL_INIT_JOYSTICK
  • SDL_INIT_EVERYTHING
  • SDL_INIT_NOPARACHUTE
  • SDL_INIT_EVENTTHREAD

Clone this wiki locally