00001 /* 00002 SDL - Simple DirectMedia Layer 00003 Copyright (C) 1997-2009 Sam Lantinga 00004 00005 This library is free software; you can redistribute it and/or 00006 modify it under the terms of the GNU Lesser General Public 00007 License as published by the Free Software Foundation; either 00008 version 2.1 of the License, or (at your option) any later version. 00009 00010 This library is distributed in the hope that it will be useful, 00011 but WITHOUT ANY WARRANTY; without even the implied warranty of 00012 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00013 Lesser General Public License for more details. 00014 00015 You should have received a copy of the GNU Lesser General Public 00016 License along with this library; if not, write to the Free Software 00017 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 00018 00019 Sam Lantinga 00020 slouken@libsdl.org 00021 */ 00022 00027 #ifndef _SDL_H 00028 #define _SDL_H 00029 00030 #include "SDL_main.h" 00031 #include "SDL_stdinc.h" 00032 #include "SDL_audio.h" 00033 #include "SDL_cdrom.h" 00034 #include "SDL_cpuinfo.h" 00035 #include "SDL_endian.h" 00036 #include "SDL_error.h" 00037 #include "SDL_events.h" 00038 #include "SDL_loadso.h" 00039 #include "SDL_mutex.h" 00040 #include "SDL_rwops.h" 00041 #include "SDL_thread.h" 00042 #include "SDL_timer.h" 00043 #include "SDL_video.h" 00044 #include "SDL_version.h" 00045 00046 #include "begin_code.h" 00047 /* Set up for C function definitions, even when using C++ */ 00048 #ifdef __cplusplus 00049 extern "C" { 00050 #endif 00051 00061 #define SDL_INIT_TIMER 0x00000001 00062 #define SDL_INIT_AUDIO 0x00000010 00063 #define SDL_INIT_VIDEO 0x00000020 00064 #define SDL_INIT_CDROM 0x00000100 00065 #define SDL_INIT_JOYSTICK 0x00000200 00066 #define SDL_INIT_NOPARACHUTE 0x00100000 00067 #define SDL_INIT_EVENTTHREAD 0x01000000 00068 #define SDL_INIT_EVERYTHING 0x0000FFFF 00069 00076 extern DECLSPEC int SDLCALL SDL_Init(Uint32 flags); 00077 00079 extern DECLSPEC int SDLCALL SDL_InitSubSystem(Uint32 flags); 00080 00082 extern DECLSPEC void SDLCALL SDL_QuitSubSystem(Uint32 flags); 00083 00088 extern DECLSPEC Uint32 SDLCALL SDL_WasInit(Uint32 flags); 00089 00093 extern DECLSPEC void SDLCALL SDL_Quit(void); 00094 00095 /* Ends C function definitions when using C++ */ 00096 #ifdef __cplusplus 00097 } 00098 #endif 00099 #include "close_code.h" 00100 00101 #endif /* _SDL_H */