zenilib  0.5.3.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
SDL_hints.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 
39 #ifndef _SDL_hints_h
40 #define _SDL_hints_h
41 
42 #include "SDL_stdinc.h"
43 
44 #include "begin_code.h"
45 /* Set up for C function definitions, even when using C++ */
46 #ifdef __cplusplus
47 extern "C" {
48 #endif
49 
65 #define SDL_HINT_FRAMEBUFFER_ACCELERATION "SDL_FRAMEBUFFER_ACCELERATION"
66 
84 #define SDL_HINT_RENDER_DRIVER "SDL_RENDER_DRIVER"
85 
95 #define SDL_HINT_RENDER_OPENGL_SHADERS "SDL_RENDER_OPENGL_SHADERS"
96 
106 #define SDL_HINT_RENDER_DIRECT3D_THREADSAFE "SDL_RENDER_DIRECT3D_THREADSAFE"
107 
118 #define SDL_HINT_RENDER_SCALE_QUALITY "SDL_RENDER_SCALE_QUALITY"
119 
129 #define SDL_HINT_RENDER_VSYNC "SDL_RENDER_VSYNC"
130 
140 #define SDL_HINT_VIDEO_X11_XVIDMODE "SDL_VIDEO_X11_XVIDMODE"
141 
151 #define SDL_HINT_VIDEO_X11_XINERAMA "SDL_VIDEO_X11_XINERAMA"
152 
162 #define SDL_HINT_VIDEO_X11_XRANDR "SDL_VIDEO_X11_XRANDR"
163 
173 #define SDL_HINT_GRAB_KEYBOARD "SDL_GRAB_KEYBOARD"
174 
179 #define SDL_HINT_VIDEO_MINIMIZE_ON_FOCUS_LOSS "SDL_VIDEO_MINIMIZE_ON_FOCUS_LOSS"
180 
181 
194 #define SDL_HINT_IDLE_TIMER_DISABLED "SDL_IOS_IDLE_TIMER_DISABLED"
195 
205 #define SDL_HINT_ORIENTATIONS "SDL_IOS_ORIENTATIONS"
206 
207 
215 #define SDL_HINT_XINPUT_ENABLED "SDL_XINPUT_ENABLED"
216 
217 
226 #define SDL_HINT_GAMECONTROLLERCONFIG "SDL_GAMECONTROLLERCONFIG"
227 
228 
240 #define SDL_HINT_JOYSTICK_ALLOW_BACKGROUND_EVENTS "SDL_JOYSTICK_ALLOW_BACKGROUND_EVENTS"
241 
242 
251 #define SDL_HINT_ALLOW_TOPMOST "SDL_ALLOW_TOPMOST"
252 
253 
268 #define SDL_HINT_TIMER_RESOLUTION "SDL_TIMER_RESOLUTION"
269 
270 
274 #define SDL_HINT_VIDEO_HIGHDPI_DISABLED "SDL_VIDEO_HIGHDPI_DISABLED"
275 
276 
280 typedef enum
281 {
286 
287 
298  const char *value,
299  SDL_HintPriority priority);
300 
306 extern DECLSPEC SDL_bool SDLCALL SDL_SetHint(const char *name,
307  const char *value);
308 
314 extern DECLSPEC const char * SDLCALL SDL_GetHint(const char *name);
315 
323 typedef void (*SDL_HintCallback)(void *userdata, const char *name, const char *oldValue, const char *newValue);
324 extern DECLSPEC void SDLCALL SDL_AddHintCallback(const char *name,
325  SDL_HintCallback callback,
326  void *userdata);
327 
335 extern DECLSPEC void SDLCALL SDL_DelHintCallback(const char *name,
336  SDL_HintCallback callback,
337  void *userdata);
338 
344 extern DECLSPEC void SDLCALL SDL_ClearHints(void);
345 
346 
347 /* Ends C function definitions when using C++ */
348 #ifdef __cplusplus
349 }
350 #endif
351 #include "close_code.h"
352 
353 #endif /* _SDL_hints_h */
354 
355 /* vi: set ts=4 sw=4 expandtab: */
GLvoid **typedef void(GLAPIENTRY *PFNGLGETVERTEXATTRIBDVPROC)(GLuint
Definition: glew.h:1824
SDL_bool
Definition: SDL_stdinc.h:116
DECLSPEC SDL_bool SDLCALL SDL_SetHint(const char *name, const char *value)
Set a hint with normal priority.
Definition: SDL_hints.c:98
SDL_HintPriority
An enumeration of hint priorities.
Definition: SDL_hints.h:280
#define DECLSPEC
Definition: begin_code.h:62
EGLImageKHR EGLint * name
Definition: eglext.h:284
DECLSPEC void SDLCALL SDL_AddHintCallback(const char *name, SDL_HintCallback callback, void *userdata)
Definition: SDL_hints.c:122
#define SDLCALL
Definition: begin_code.h:72
DECLSPEC const char *SDLCALL SDL_GetHint(const char *name)
Get a hint.
Definition: SDL_hints.c:104
EGLSurface EGLint void ** value
Definition: eglext.h:301
DECLSPEC SDL_bool SDLCALL SDL_SetHintWithPriority(const char *name, const char *value, SDL_HintPriority priority)
Set a hint with a specific priority.
Definition: SDL_hints.c:47
void(* SDL_HintCallback)(void *userdata, const char *name, const char *oldValue, const char *newValue)
Add a function to watch a particular hint.
Definition: SDL_hints.h:323
DECLSPEC void SDLCALL SDL_DelHintCallback(const char *name, SDL_HintCallback callback, void *userdata)
Remove a function watching a particular hint.
Definition: SDL_hints.c:172
DECLSPEC void SDLCALL SDL_ClearHints(void)
Clear all hints.
Definition: SDL_hints.c:197