zenilib  0.5.3.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
SDL.h
Go to the documentation of this file.
1 /*
2  Simple DirectMedia Layer
3  Copyright (C) 1997-2013 Sam Lantinga <slouken@libsdl.org>
4 
5  This software is provided 'as-is', without any express or implied
6  warranty. In no event will the authors be held liable for any damages
7  arising from the use of this software.
8 
9  Permission is granted to anyone to use this software for any purpose,
10  including commercial applications, and to alter it and redistribute it
11  freely, subject to the following restrictions:
12 
13  1. The origin of this software must not be misrepresented; you must not
14  claim that you wrote the original software. If you use this software
15  in a product, an acknowledgment in the product documentation would be
16  appreciated but is not required.
17  2. Altered source versions must be plainly marked as such, and must not be
18  misrepresented as being the original software.
19  3. This notice may not be removed or altered from any source distribution.
20 */
21 
62 #ifndef _SDL_H
63 #define _SDL_H
64 
65 #include "SDL_main.h"
66 #include "SDL_stdinc.h"
67 #include "SDL_assert.h"
68 #include "SDL_atomic.h"
69 #include "SDL_audio.h"
70 #include "SDL_clipboard.h"
71 #include "SDL_cpuinfo.h"
72 #include "SDL_endian.h"
73 #include "SDL_error.h"
74 #include "SDL_events.h"
75 #include "SDL_filesystem.h"
76 #include "SDL_joystick.h"
77 #include "SDL_gamecontroller.h"
78 #include "SDL_haptic.h"
79 #include "SDL_hints.h"
80 #include "SDL_loadso.h"
81 #include "SDL_log.h"
82 #include "SDL_messagebox.h"
83 #include "SDL_mutex.h"
84 #include "SDL_power.h"
85 #include "SDL_render.h"
86 #include "SDL_rwops.h"
87 #include "SDL_system.h"
88 #include "SDL_thread.h"
89 #include "SDL_timer.h"
90 #include "SDL_version.h"
91 #include "SDL_video.h"
92 
93 #include "begin_code.h"
94 /* Set up for C function definitions, even when using C++ */
95 #ifdef __cplusplus
96 extern "C" {
97 #endif
98 
99 /* As of version 0.5, SDL is loaded dynamically into the application */
100 
107 /* @{ */
108 #define SDL_INIT_TIMER 0x00000001
109 #define SDL_INIT_AUDIO 0x00000010
110 #define SDL_INIT_VIDEO 0x00000020
111 #define SDL_INIT_JOYSTICK 0x00000200
112 #define SDL_INIT_HAPTIC 0x00001000
113 #define SDL_INIT_GAMECONTROLLER 0x00002000
114 #define SDL_INIT_EVENTS 0x00004000
115 #define SDL_INIT_NOPARACHUTE 0x00100000
116 #define SDL_INIT_EVERYTHING ( \
117  SDL_INIT_TIMER | SDL_INIT_AUDIO | SDL_INIT_VIDEO | SDL_INIT_EVENTS | \
118  SDL_INIT_JOYSTICK | SDL_INIT_HAPTIC | SDL_INIT_GAMECONTROLLER \
119  )
120 /* @} */
121 
127 extern DECLSPEC int SDLCALL SDL_Init(Uint32 flags);
128 
133 
138 
146 
151 extern DECLSPEC void SDLCALL SDL_Quit(void);
152 
153 /* Ends C function definitions when using C++ */
154 #ifdef __cplusplus
155 }
156 #endif
157 #include "close_code.h"
158 
159 #endif /* _SDL_H */
160 
161 /* vi: set ts=4 sw=4 expandtab: */
#define DECLSPEC
Definition: begin_code.h:62
The SDL Haptic subsystem allows you to control haptic (force feedback) devices.
#define SDLCALL
Definition: begin_code.h:72
DECLSPEC void SDLCALL SDL_Quit(void)
Definition: SDL.c:342
uint32_t Uint32
An unsigned 32-bit integer type.
Definition: SDL_stdinc.h:145
DECLSPEC Uint32 SDLCALL SDL_WasInit(Uint32 flags)
Definition: SDL.c:317
DECLSPEC int SDLCALL SDL_InitSubSystem(Uint32 flags)
Definition: SDL.c:103
GLenum GLsizei GLsizei GLsizei GLsizei GLbitfield flags
Definition: glew.h:2767
Include file for filesystem SDL API functions.
DECLSPEC int SDLCALL SDL_Init(Uint32 flags)
Definition: SDL.c:235
DECLSPEC void SDLCALL SDL_QuitSubSystem(Uint32 flags)
Definition: SDL.c:241