/*1Simple DirectMedia Layer2Copyright (C) 1997-2011 Sam Lantinga <[email protected]>34This software is provided 'as-is', without any express or implied5warranty. In no event will the authors be held liable for any damages6arising from the use of this software.78Permission is granted to anyone to use this software for any purpose,9including commercial applications, and to alter it and redistribute it10freely, subject to the following restrictions:11121. The origin of this software must not be misrepresented; you must not13claim that you wrote the original software. If you use this software14in a product, an acknowledgment in the product documentation would be15appreciated but is not required.162. Altered source versions must be plainly marked as such, and must not be17misrepresented as being the original software.183. This notice may not be removed or altered from any source distribution.19*/2021/**22* \file SDL.h23*24* Main include header for the SDL library25*/2627/**28* \mainpage Simple DirectMedia Layer (SDL)29*30* http://www.libsdl.org/31*32* \section intro_sec Introduction33*34* This is the Simple DirectMedia Layer, a general API that provides low35* level access to audio, keyboard, mouse, joystick, 3D hardware via OpenGL,36* and 2D framebuffer across multiple platforms.37*38* SDL is written in C, but works with C++ natively, and has bindings to39* several other languages, including Ada, C#, Eiffel, Erlang, Euphoria,40* Guile, Haskell, Java, Lisp, Lua, ML, Objective C, Pascal, Perl, PHP,41* Pike, Pliant, Python, Ruby, and Smalltalk.42*43* This library is distributed under GNU LGPL version 2, which can be44* found in the file "COPYING". This license allows you to use SDL45* freely in commercial programs as long as you link with the dynamic46* library.47*48* The best way to learn how to use SDL is to check out the header files in49* the "include" subdirectory and the programs in the "test" subdirectory.50* The header files and test programs are well commented and always up to date.51* More documentation is available in HTML format in "docs/index.html", and52* a documentation wiki is available online at:53* http://www.libsdl.org/cgi/docwiki.cgi54*55* The test programs in the "test" subdirectory are in the public domain.56*57* Frequently asked questions are answered online:58* http://www.libsdl.org/faq.php59*60* If you need help with the library, or just want to discuss SDL related61* issues, you can join the developers mailing list:62* http://www.libsdl.org/mailing-list.php63*64* Enjoy!65* Sam Lantinga ([email protected])66*/6768#ifndef _SDL_H69#define _SDL_H7071#include "SDL_main.h"72#include "SDL_stdinc.h"73#include "SDL_assert.h"74#include "SDL_atomic.h"75#include "SDL_audio.h"76#include "SDL_clipboard.h"77#include "SDL_cpuinfo.h"78#include "SDL_endian.h"79#include "SDL_error.h"80#include "SDL_events.h"81#include "SDL_hints.h"82#include "SDL_loadso.h"83#include "SDL_log.h"84#include "SDL_mutex.h"85#include "SDL_power.h"86#include "SDL_render.h"87#include "SDL_rwops.h"88#include "SDL_thread.h"89#include "SDL_timer.h"90#include "SDL_version.h"91#include "SDL_video.h"92#include "SDL_compat.h"9394#include "begin_code.h"95/* Set up for C function definitions, even when using C++ */96#ifdef __cplusplus97/* *INDENT-OFF* */98extern "C" {99/* *INDENT-ON* */100#endif101102/* As of version 0.5, SDL is loaded dynamically into the application */103104/**105* \name SDL_INIT_*106*107* These are the flags which may be passed to SDL_Init(). You should108* specify the subsystems which you will be using in your application.109*/110/*@{*/111#define SDL_INIT_TIMER 0x00000001112#define SDL_INIT_AUDIO 0x00000010113#define SDL_INIT_VIDEO 0x00000020114#define SDL_INIT_JOYSTICK 0x00000200115#define SDL_INIT_HAPTIC 0x00001000116#define SDL_INIT_NOPARACHUTE 0x00100000 /**< Don't catch fatal signals */117#define SDL_INIT_EVERYTHING 0x0000FFFF118/*@}*/119120/**121* This function initializes the subsystems specified by \c flags122* Unless the ::SDL_INIT_NOPARACHUTE flag is set, it will install cleanup123* signal handlers for some commonly ignored fatal signals (like SIGSEGV).124*/125extern DECLSPEC int SDLCALL SDL_Init(Uint32 flags);126127/**128* This function initializes specific SDL subsystems129*/130extern DECLSPEC int SDLCALL SDL_InitSubSystem(Uint32 flags);131132/**133* This function cleans up specific SDL subsystems134*/135extern DECLSPEC void SDLCALL SDL_QuitSubSystem(Uint32 flags);136137/**138* This function returns a mask of the specified subsystems which have139* previously been initialized.140*141* If \c flags is 0, it returns a mask of all initialized subsystems.142*/143extern DECLSPEC Uint32 SDLCALL SDL_WasInit(Uint32 flags);144145/**146* This function cleans up all initialized subsystems. You should147* call it upon all exit conditions.148*/149extern DECLSPEC void SDLCALL SDL_Quit(void);150151/* Ends C function definitions when using C++ */152#ifdef __cplusplus153/* *INDENT-OFF* */154}155/* *INDENT-ON* */156#endif157#include "close_code.h"158159#endif /* _SDL_H */160161/* vi: set ts=4 sw=4 expandtab: */162163164