/*
SDL - Simple DirectMedia Layer
Copyright (C) 1997-2006 Sam Lantinga
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public
License along with this library; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
Sam Lantinga
slouken@libsdl.org
*/
module sdl.c.sdl;
public
{
import sdl.c.sdl_main;
import sdl.c.sdl_stdinc;
import sdl.c.sdl_audio;
import sdl.c.sdl_cdrom;
import sdl.c.sdl_cpuinfo;
import sdl.c.sdl_endian;
import sdl.c.sdl_error;
import sdl.c.sdl_events;
import sdl.c.sdl_loadso;
import sdl.c.sdl_mutex;
import sdl.c.sdl_rwops;
import sdl.c.sdl_thread;
import sdl.c.sdl_timer;
import sdl.c.sdl_video;
import sdl.c.sdl_version;
}
const
{
uint SDL_INIT_TIMER = 0x00000001;
uint SDL_INIT_AUDIO = 0x00000010;
uint SDL_INIT_VIDEO = 0x00000020;
uint SDL_INIT_CDROM = 0x00000100;
uint SDL_INIT_JOYSTICK = 0x00000200;
uint SDL_INIT_NOPARACHUTE = 0x00100000; // Don't catch fatal signals
uint SDL_INIT_EVENTTHREAD = 0x01000000; // Not supported on all OS's
uint SDL_INIT_EVERYTHING = 0x0000FFFF;
}
extern(C):
/* This function loads the SDL dynamically linked library and initializes
* the subsystems specified by 'flags' (and those satisfying dependencies)
* Unless the SDL_INIT_NOPARACHUTE flag is set, it will install cleanup
* signal handlers for some commonly ignored fatal signals (like SIGSEGV)
*/
int SDL_Init(Uint32 flags);
/* This function initializes specific SDL subsystems */
int SDL_InitSubSystem(Uint32 flags);
/* This function cleans up specific SDL subsystems */
void SDL_QuitSubSystem(Uint32 flags);
/* This function returns mask of the specified subsystems which have
been initialized.
If 'flags' is 0, it returns a mask of all initialized subsystems.
*/
Uint32 SDL_WasInit(Uint32 flags);
/* This function cleans up all initialized subsystems and unloads the
* dynamically linked library. You should call it upon all exit conditions.
*/
void SDL_Quit();