zenilib: zenilib/jni/external/sdl/SDL/SDL_video.h Source File

zenilib 0.5.3.0

- Main Page
- Modules
- Namespaces
- Classes
- Files

- File List
- File Members

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
SDL_video.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
28 #ifndef _SDL_video_h
29 #define _SDL_video_h
30
31 #include "SDL_stdinc.h"
32 #include "SDL_pixels.h"
33 #include "SDL_rect.h"
34 #include "SDL_surface.h"
35
36 #include "begin_code.h"
37 /* Set up for C function definitions, even when using C++ */
38 #ifdef __cplusplus
39 extern "C" {
40 #endif
41
53 typedef struct
54 {
55 Uint32 format;
56 int w;
57 int h;
58 int refresh_rate;
59 void *driverdata;
60 } SDL_DisplayMode;
61
89 typedef struct SDL_Window SDL_Window;
90
96 typedef enum
97 {
98 SDL_WINDOW_FULLSCREEN = 0x00000001,
99 SDL_WINDOW_OPENGL = 0x00000002,
100 SDL_WINDOW_SHOWN = 0x00000004,
101 SDL_WINDOW_HIDDEN = 0x00000008,
102 SDL_WINDOW_BORDERLESS = 0x00000010,
103 SDL_WINDOW_RESIZABLE = 0x00000020,
104 SDL_WINDOW_MINIMIZED = 0x00000040,
105 SDL_WINDOW_MAXIMIZED = 0x00000080,
106 SDL_WINDOW_INPUT_GRABBED = 0x00000100,
107 SDL_WINDOW_INPUT_FOCUS = 0x00000200,
108 SDL_WINDOW_MOUSE_FOCUS = 0x00000400,
109 SDL_WINDOW_FULLSCREEN_DESKTOP = ( SDL_WINDOW_FULLSCREEN | 0x00001000 ),
110 SDL_WINDOW_FOREIGN = 0x00000800,
111 SDL_WINDOW_ALLOW_HIGHDPI = 0x00002000,
112 } SDL_WindowFlags;
113
117 #define SDL_WINDOWPOS_UNDEFINED_MASK 0x1FFF0000
118 #define SDL_WINDOWPOS_UNDEFINED_DISPLAY(X) (SDL_WINDOWPOS_UNDEFINED_MASK|(X))
119 #define SDL_WINDOWPOS_UNDEFINED SDL_WINDOWPOS_UNDEFINED_DISPLAY(0)
120 #define SDL_WINDOWPOS_ISUNDEFINED(X) \
121 (((X)&0xFFFF0000) == SDL_WINDOWPOS_UNDEFINED_MASK)
122
126 #define SDL_WINDOWPOS_CENTERED_MASK 0x2FFF0000
127 #define SDL_WINDOWPOS_CENTERED_DISPLAY(X) (SDL_WINDOWPOS_CENTERED_MASK|(X))
128 #define SDL_WINDOWPOS_CENTERED SDL_WINDOWPOS_CENTERED_DISPLAY(0)
129 #define SDL_WINDOWPOS_ISCENTERED(X) \
130 (((X)&0xFFFF0000) == SDL_WINDOWPOS_CENTERED_MASK)
131
135 typedef enum
136 {
137 SDL_WINDOWEVENT_NONE,
138 SDL_WINDOWEVENT_SHOWN,
139 SDL_WINDOWEVENT_HIDDEN,
140 SDL_WINDOWEVENT_EXPOSED,
142 SDL_WINDOWEVENT_MOVED,
144 SDL_WINDOWEVENT_RESIZED,
145 SDL_WINDOWEVENT_SIZE_CHANGED,
146 SDL_WINDOWEVENT_MINIMIZED,
147 SDL_WINDOWEVENT_MAXIMIZED,
148 SDL_WINDOWEVENT_RESTORED,
150 SDL_WINDOWEVENT_ENTER,
151 SDL_WINDOWEVENT_LEAVE,
152 SDL_WINDOWEVENT_FOCUS_GAINED,
153 SDL_WINDOWEVENT_FOCUS_LOST,
154 SDL_WINDOWEVENT_CLOSE
156 } SDL_WindowEventID;
157
161 typedef void *SDL_GLContext;
162
166 typedef enum
167 {
168 SDL_GL_RED_SIZE,
169 SDL_GL_GREEN_SIZE,
170 SDL_GL_BLUE_SIZE,
171 SDL_GL_ALPHA_SIZE,
172 SDL_GL_BUFFER_SIZE,
173 SDL_GL_DOUBLEBUFFER,
174 SDL_GL_DEPTH_SIZE,
175 SDL_GL_STENCIL_SIZE,
176 SDL_GL_ACCUM_RED_SIZE,
177 SDL_GL_ACCUM_GREEN_SIZE,
178 SDL_GL_ACCUM_BLUE_SIZE,
179 SDL_GL_ACCUM_ALPHA_SIZE,
180 SDL_GL_STEREO,
181 SDL_GL_MULTISAMPLEBUFFERS,
182 SDL_GL_MULTISAMPLESAMPLES,
183 SDL_GL_ACCELERATED_VISUAL,
184 SDL_GL_RETAINED_BACKING,
185 SDL_GL_CONTEXT_MAJOR_VERSION,
186 SDL_GL_CONTEXT_MINOR_VERSION,
187 SDL_GL_CONTEXT_EGL,
188 SDL_GL_CONTEXT_FLAGS,
189 SDL_GL_CONTEXT_PROFILE_MASK,
190 SDL_GL_SHARE_WITH_CURRENT_CONTEXT
191 } SDL_GLattr;
192
193 typedef enum
194 {
195 SDL_GL_CONTEXT_PROFILE_CORE = 0x0001,
196 SDL_GL_CONTEXT_PROFILE_COMPATIBILITY = 0x0002,
197 SDL_GL_CONTEXT_PROFILE_ES = 0x0004 /* GLX_CONTEXT_ES2_PROFILE_BIT_EXT */
198 } SDL_GLprofile;
199
200 typedef enum
201 {
202 SDL_GL_CONTEXT_DEBUG_FLAG = 0x0001,
203 SDL_GL_CONTEXT_FORWARD_COMPATIBLE_FLAG = 0x0002,
204 SDL_GL_CONTEXT_ROBUST_ACCESS_FLAG = 0x0004,
205 SDL_GL_CONTEXT_RESET_ISOLATION_FLAG = 0x0008
206 } SDL_GLcontextFlag;
207
208
209 /* Function prototypes */
210
216 extern DECLSPEC int SDLCALL SDL_GetNumVideoDrivers(void);
217
226 extern DECLSPEC const char *SDLCALL SDL_GetVideoDriver(int index);
227
242 extern DECLSPEC int SDLCALL SDL_VideoInit(const char *driver_name);
243
251 extern DECLSPEC void SDLCALL SDL_VideoQuit(void);
252
262 extern DECLSPEC const char *SDLCALL SDL_GetCurrentVideoDriver(void);
263
269 extern DECLSPEC int SDLCALL SDL_GetNumVideoDisplays(void);
270
278 extern DECLSPEC const char * SDLCALL SDL_GetDisplayName(int displayIndex);
279
288 extern DECLSPEC int SDLCALL SDL_GetDisplayBounds(int displayIndex, SDL_Rect * rect);
289
295 extern DECLSPEC int SDLCALL SDL_GetNumDisplayModes(int displayIndex);
296
308 extern DECLSPEC int SDLCALL SDL_GetDisplayMode(int displayIndex, int modeIndex,
309 SDL_DisplayMode * mode);
310
314 extern DECLSPEC int SDLCALL SDL_GetDesktopDisplayMode(int displayIndex, SDL_DisplayMode * mode);
315
319 extern DECLSPEC int SDLCALL SDL_GetCurrentDisplayMode(int displayIndex, SDL_DisplayMode * mode);
320
321
343 extern DECLSPEC SDL_DisplayMode * SDLCALL SDL_GetClosestDisplayMode(int displayIndex, const SDL_DisplayMode * mode, SDL_DisplayMode * closest);
344
351 extern DECLSPEC int SDLCALL SDL_GetWindowDisplayIndex(SDL_Window * window);
352
367 extern DECLSPEC int SDLCALL SDL_SetWindowDisplayMode(SDL_Window * window,
368 const SDL_DisplayMode
369 * mode);
370
378 extern DECLSPEC int SDLCALL SDL_GetWindowDisplayMode(SDL_Window * window,
379 SDL_DisplayMode * mode);
380
384 extern DECLSPEC Uint32 SDLCALL SDL_GetWindowPixelFormat(SDL_Window * window);
385
407 extern DECLSPEC SDL_Window * SDLCALL SDL_CreateWindow(const char *title,
408 int x, int y, int w,
409 int h, Uint32 flags);
410
420 extern DECLSPEC SDL_Window * SDLCALL SDL_CreateWindowFrom(const void *data);
421
425 extern DECLSPEC Uint32 SDLCALL SDL_GetWindowID(SDL_Window * window);
426
430 extern DECLSPEC SDL_Window * SDLCALL SDL_GetWindowFromID(Uint32 id);
431
435 extern DECLSPEC Uint32 SDLCALL SDL_GetWindowFlags(SDL_Window * window);
436
442 extern DECLSPEC void SDLCALL SDL_SetWindowTitle(SDL_Window * window,
443 const char *title);
444
450 extern DECLSPEC const char *SDLCALL SDL_GetWindowTitle(SDL_Window * window);
451
458 extern DECLSPEC void SDLCALL SDL_SetWindowIcon(SDL_Window * window,
459 SDL_Surface * icon);
460
474 extern DECLSPEC void* SDLCALL SDL_SetWindowData(SDL_Window * window,
475 const char *name,
476 void *userdata);
477
488 extern DECLSPEC void *SDLCALL SDL_GetWindowData(SDL_Window * window,
489 const char *name);
490
504 extern DECLSPEC void SDLCALL SDL_SetWindowPosition(SDL_Window * window,
505 int x, int y);
506
516 extern DECLSPEC void SDLCALL SDL_GetWindowPosition(SDL_Window * window,
517 int *x, int *y);
518
531 extern DECLSPEC void SDLCALL SDL_SetWindowSize(SDL_Window * window, int w,
532 int h);
533
543 extern DECLSPEC void SDLCALL SDL_GetWindowSize(SDL_Window * window, int *w,
544 int *h);
545
559 extern DECLSPEC void SDLCALL SDL_SetWindowMinimumSize(SDL_Window * window,
560 int min_w, int min_h);
561
572 extern DECLSPEC void SDLCALL SDL_GetWindowMinimumSize(SDL_Window * window,
573 int *w, int *h);
574
588 extern DECLSPEC void SDLCALL SDL_SetWindowMaximumSize(SDL_Window * window,
589 int max_w, int max_h);
590
601 extern DECLSPEC void SDLCALL SDL_GetWindowMaximumSize(SDL_Window * window,
602 int *w, int *h);
603
618 extern DECLSPEC void SDLCALL SDL_SetWindowBordered(SDL_Window * window,
619 SDL_bool bordered);
620
626 extern DECLSPEC void SDLCALL SDL_ShowWindow(SDL_Window * window);
627
633 extern DECLSPEC void SDLCALL SDL_HideWindow(SDL_Window * window);
634
638 extern DECLSPEC void SDLCALL SDL_RaiseWindow(SDL_Window * window);
639
645 extern DECLSPEC void SDLCALL SDL_MaximizeWindow(SDL_Window * window);
646
652 extern DECLSPEC void SDLCALL SDL_MinimizeWindow(SDL_Window * window);
653
660 extern DECLSPEC void SDLCALL SDL_RestoreWindow(SDL_Window * window);
661
670 extern DECLSPEC int SDLCALL SDL_SetWindowFullscreen(SDL_Window * window,
671 Uint32 flags);
672
686 extern DECLSPEC SDL_Surface * SDLCALL SDL_GetWindowSurface(SDL_Window * window);
687
696 extern DECLSPEC int SDLCALL SDL_UpdateWindowSurface(SDL_Window * window);
697
706 extern DECLSPEC int SDLCALL SDL_UpdateWindowSurfaceRects(SDL_Window * window,
707 const SDL_Rect * rects,
708 int numrects);
709
718 extern DECLSPEC void SDLCALL SDL_SetWindowGrab(SDL_Window * window,
719 SDL_bool grabbed);
720
728 extern DECLSPEC SDL_bool SDLCALL SDL_GetWindowGrab(SDL_Window * window);
729
738 extern DECLSPEC int SDLCALL SDL_SetWindowBrightness(SDL_Window * window, float brightness);
739
747 extern DECLSPEC float SDLCALL SDL_GetWindowBrightness(SDL_Window * window);
748
767 extern DECLSPEC int SDLCALL SDL_SetWindowGammaRamp(SDL_Window * window,
768 const Uint16 * red,
769 const Uint16 * green,
770 const Uint16 * blue);
771
787 extern DECLSPEC int SDLCALL SDL_GetWindowGammaRamp(SDL_Window * window,
788 Uint16 * red,
789 Uint16 * green,
790 Uint16 * blue);
791
795 extern DECLSPEC void SDLCALL SDL_DestroyWindow(SDL_Window * window);
796
797
804 extern DECLSPEC SDL_bool SDLCALL SDL_IsScreenSaverEnabled(void);
805
812 extern DECLSPEC void SDLCALL SDL_EnableScreenSaver(void);
813
820 extern DECLSPEC void SDLCALL SDL_DisableScreenSaver(void);
821
822
826 /* @{ */
827
846 extern DECLSPEC int SDLCALL SDL_GL_LoadLibrary(const char *path);
847
851 extern DECLSPEC void *SDLCALL SDL_GL_GetProcAddress(const char *proc);
852
858 extern DECLSPEC void SDLCALL SDL_GL_UnloadLibrary(void);
859
864 extern DECLSPEC SDL_bool SDLCALL SDL_GL_ExtensionSupported(const char
865 *extension);
866
870 extern DECLSPEC int SDLCALL SDL_GL_SetAttribute(SDL_GLattr attr, int value);
871
875 extern DECLSPEC int SDLCALL SDL_GL_GetAttribute(SDL_GLattr attr, int *value);
876
883 extern DECLSPEC SDL_GLContext SDLCALL SDL_GL_CreateContext(SDL_Window *
884 window);
885
891 extern DECLSPEC int SDLCALL SDL_GL_MakeCurrent(SDL_Window * window,
892 SDL_GLContext context);
893
897 extern DECLSPEC SDL_Window* SDLCALL SDL_GL_GetCurrentWindow(void);
898
902 extern DECLSPEC SDL_GLContext SDLCALL SDL_GL_GetCurrentContext(void);
903
919 extern DECLSPEC void SDLCALL SDL_GL_GetDrawableSize(SDL_Window * window, int *w,
920 int *h);
921
934 extern DECLSPEC int SDLCALL SDL_GL_SetSwapInterval(int interval);
935
947 extern DECLSPEC int SDLCALL SDL_GL_GetSwapInterval(void);
948
953 extern DECLSPEC void SDLCALL SDL_GL_SwapWindow(SDL_Window * window);
954
960 extern DECLSPEC void SDLCALL SDL_GL_DeleteContext(SDL_GLContext context);
961
962 /* @} *//* OpenGL support functions */
963
964
965 /* Ends C function definitions when using C++ */
966 #ifdef __cplusplus
967 }
968 #endif
969 #include "close_code.h"
970
971 #endif /* _SDL_video_h */
972
973 /* vi: set ts=4 sw=4 expandtab: */
SDL_SetWindowMaximumSize
DECLSPEC void SDLCALL SDL_SetWindowMaximumSize(SDL_Window *window, int max_w, int max_h)
Set the maximum size of a window&#39;s client area.
Definition: SDL_video.c:1686
SDL_GetWindowTitle
DECLSPEC const char *SDLCALL SDL_GetWindowTitle(SDL_Window *window)
Get the title of a window, in UTF-8 format.
Definition: SDL_video.c:1437
SDL_GetWindowMaximumSize
DECLSPEC void SDLCALL SDL_GetWindowMaximumSize(SDL_Window *window, int *w, int *h)
Get the maximum size of a window&#39;s client area.
Definition: SDL_video.c:1710
SDL_SetWindowMinimumSize
DECLSPEC void SDLCALL SDL_SetWindowMinimumSize(SDL_Window *window, int min_w, int min_h)
Set the minimum size of a window&#39;s client area.
Definition: SDL_video.c:1650
SDL_WindowFlags
SDL_WindowFlags
The flags on a window.
Definition: SDL_video.h:96
SDL_GL_GetProcAddress
DECLSPEC void *SDLCALL SDL_GL_GetProcAddress(const char *proc)
Get the address of an OpenGL function.
Definition: SDL_video.c:2340
h
GLfloat GLfloat GLfloat GLfloat h
Definition: glew.h:7294
SDL_VideoQuit
DECLSPEC void SDLCALL SDL_VideoQuit(void)
Shuts down the video subsystem.
Definition: SDL_video.c:2265
SDL_GL_STEREO
Definition: SDL_video.h:180
SDL_GetWindowMinimumSize
DECLSPEC void SDLCALL SDL_GetWindowMinimumSize(SDL_Window *window, int *w, int *h)
Get the minimum size of a window&#39;s client area.
Definition: SDL_video.c:1674
SDL_GL_CONTEXT_MINOR_VERSION
Definition: SDL_video.h:186
SDL_WINDOWEVENT_MINIMIZED
Definition: SDL_video.h:146
SDL_GL_CONTEXT_MAJOR_VERSION
Definition: SDL_video.h:185
SDL_GL_GetSwapInterval
DECLSPEC int SDLCALL SDL_GL_GetSwapInterval(void)
Get the swap interval for the current OpenGL context.
Definition: SDL_video.c:2857
SDL_WINDOW_MOUSE_FOCUS
Definition: SDL_video.h:108
SDL_GetWindowBrightness
DECLSPEC float SDLCALL SDL_GetWindowBrightness(SDL_Window *window)
Get the brightness (gamma correction) for a window.
Definition: SDL_video.c:1920
SDL_GLcontextFlag
SDL_GLcontextFlag
Definition: SDL_video.h:200
SDL_GL_DOUBLEBUFFER
Definition: SDL_video.h:173
SDL_DisplayMode::w
int w
Definition: SDL_video.h:56
SDL_GL_CreateContext
DECLSPEC SDL_GLContext SDLCALL SDL_GL_CreateContext(SDL_Window *window)
Create an OpenGL context for use with an OpenGL window, and make it current.
Definition: SDL_video.c:2758
SDL_bool
SDL_bool
Definition: SDL_stdinc.h:116
SDL_GL_CONTEXT_EGL
Definition: SDL_video.h:187
SDL_VideoInit
DECLSPEC int SDLCALL SDL_VideoInit(const char *driver_name)
Initialize the video subsystem, optionally specifying a video driver.
Definition: SDL_video.c:406
SDL_GetWindowGrab
DECLSPEC SDL_bool SDLCALL SDL_GetWindowGrab(SDL_Window *window)
Get a window&#39;s input grab mode.
Definition: SDL_video.c:2037
SDL_GL_SHARE_WITH_CURRENT_CONTEXT
Definition: SDL_video.h:190
x
EGLSurface EGLint x
Definition: eglext.h:293
SDL_GL_GetCurrentWindow
DECLSPEC SDL_Window *SDLCALL SDL_GL_GetCurrentWindow(void)
Get the currently active OpenGL window.
Definition: SDL_video.c:2812
SDL_Surface
A collection of pixels used in software blitting.
Definition: SDL_surface.h:69
SDL_GL_GREEN_SIZE
Definition: SDL_video.h:169
SDL_GL_GetAttribute
DECLSPEC int SDLCALL SDL_GL_GetAttribute(SDL_GLattr attr, int *value)
Get the actual value for an attribute from the current context.
Definition: SDL_video.c:2578
SDL_DisplayMode
The structure that defines a display mode.
Definition: SDL_video.h:53
SDL_GLattr
SDL_GLattr
OpenGL configuration attributes.
Definition: SDL_video.h:166
SDL_SetWindowDisplayMode
DECLSPEC int SDLCALL SDL_SetWindowDisplayMode(SDL_Window *window, const SDL_DisplayMode *mode)
Set the display mode used when a fullscreen window is visible.
Definition: SDL_video.c:1007
SDL_WINDOWEVENT_NONE
Definition: SDL_video.h:137
SDL_GetNumDisplayModes
DECLSPEC int SDLCALL SDL_GetNumDisplayModes(int displayIndex)
Returns the number of available display modes.
Definition: SDL_video.c:713
SDL_GLContext
void * SDL_GLContext
An opaque handle to an OpenGL context.
Definition: SDL_video.h:161
SDL_DisplayMode::refresh_rate
int refresh_rate
Definition: SDL_video.h:58
SDL_WINDOWEVENT_MAXIMIZED
Definition: SDL_video.h:147
DECLSPEC
#define DECLSPEC
Definition: begin_code.h:62
name
EGLImageKHR EGLint * name
Definition: eglext.h:284
SDL_GetWindowSize
DECLSPEC void SDLCALL SDL_GetWindowSize(SDL_Window *window, int *w, int *h)
Get the size of a window&#39;s client area.
Definition: SDL_video.c:1638
SDL_GetWindowGammaRamp
DECLSPEC int SDLCALL SDL_GetWindowGammaRamp(SDL_Window *window, Uint16 *red, Uint16 *green, Uint16 *blue)
Get the gamma ramp for a window.
Definition: SDL_video.c:1961
green
GLclampf green
Definition: glew.h:1506
SDL_GL_CONTEXT_FORWARD_COMPATIBLE_FLAG
Definition: SDL_video.h:203
SDL_SetWindowSize
DECLSPEC void SDLCALL SDL_SetWindowSize(SDL_Window *window, int w, int h)
Set the size of a window&#39;s client area.
Definition: SDL_video.c:1611
SDLCALL
#define SDLCALL
Definition: begin_code.h:72
SDL_SetWindowBrightness
DECLSPEC int SDLCALL SDL_SetWindowBrightness(SDL_Window *window, float brightness)
Set the brightness (gamma correction) for a window.
Definition: SDL_video.c:1904
begin_code.h
SDL_GL_ACCUM_BLUE_SIZE
Definition: SDL_video.h:178
SDL_WINDOWEVENT_SIZE_CHANGED
Definition: SDL_video.h:145
SDL_WINDOW_HIDDEN
Definition: SDL_video.h:101
SDL_GetWindowDisplayMode
DECLSPEC int SDLCALL SDL_GetWindowDisplayMode(SDL_Window *window, SDL_DisplayMode *mode)
Fill in information about the display mode used when a fullscreen window is visible.
Definition: SDL_video.c:1020
SDL_GL_ACCUM_GREEN_SIZE
Definition: SDL_video.h:177
path
GLsizei const GLchar *const * path
Definition: glew.h:5828
SDL_GetCurrentDisplayMode
DECLSPEC int SDLCALL SDL_GetCurrentDisplayMode(int displayIndex, SDL_DisplayMode *mode)
Fill in information about the current display mode.
Definition: SDL_video.c:753
SDL_GL_CONTEXT_PROFILE_MASK
Definition: SDL_video.h:189
SDL_WINDOWEVENT_HIDDEN
Definition: SDL_video.h:139
SDL_GL_RETAINED_BACKING
Definition: SDL_video.h:184
SDL_WINDOW_SHOWN
Definition: SDL_video.h:100
SDL_SetWindowGrab
DECLSPEC void SDLCALL SDL_SetWindowGrab(SDL_Window *window, SDL_bool grabbed)
Set a window&#39;s input grab mode.
Definition: SDL_video.c:2021
SDL_GL_ACCUM_ALPHA_SIZE
Definition: SDL_video.h:179
SDL_HideWindow
DECLSPEC void SDLCALL SDL_HideWindow(SDL_Window *window)
Hide a window.
Definition: SDL_video.c:1737
SDL_SetWindowIcon
DECLSPEC void SDLCALL SDL_SetWindowIcon(SDL_Window *window, SDL_Surface *icon)
Set the icon for a window.
Definition: SDL_video.c:1445
SDL_GetWindowSurface
DECLSPEC SDL_Surface *SDLCALL SDL_GetWindowSurface(SDL_Window *window)
Get the SDL surface associated with the window.
Definition: SDL_video.c:1858
red
const GLubyte GLuint red
Definition: SDL_glfuncs.h:57
SDL_WINDOWEVENT_FOCUS_GAINED
Definition: SDL_video.h:152
Uint32
uint32_t Uint32
An unsigned 32-bit integer type.
Definition: SDL_stdinc.h:145
SDL_GetWindowPixelFormat
DECLSPEC Uint32 SDLCALL SDL_GetWindowPixelFormat(SDL_Window *window)
Get the pixel format associated with the window.
Definition: SDL_video.c:1059
SDL_GL_MakeCurrent
DECLSPEC int SDLCALL SDL_GL_MakeCurrent(SDL_Window *window, SDL_GLContext context)
Set up an OpenGL context for rendering into an OpenGL window.
Definition: SDL_video.c:2781
SDL_GL_SetAttribute
DECLSPEC int SDLCALL SDL_GL_SetAttribute(SDL_GLattr attr, int value)
Set an OpenGL window attribute before window creation.
Definition: SDL_video.c:2469
SDL_surface.h
SDL_GL_ACCUM_RED_SIZE
Definition: SDL_video.h:176
SDL_GetClosestDisplayMode
DECLSPEC SDL_DisplayMode *SDLCALL SDL_GetClosestDisplayMode(int displayIndex, const SDL_DisplayMode *mode, SDL_DisplayMode *closest)
Get the closest match to the requested display mode.
Definition: SDL_video.c:874
SDL_MinimizeWindow
DECLSPEC void SDLCALL SDL_MinimizeWindow(SDL_Window *window)
Minimize a window to an iconic representation.
Definition: SDL_video.c:1783
SDL_GetDisplayName
DECLSPEC const char *SDLCALL SDL_GetDisplayName(int displayIndex)
Get the name of a display in UTF-8 encoding.
Definition: SDL_video.c:630
SDL_GL_MULTISAMPLEBUFFERS
Definition: SDL_video.h:181
SDL_GL_SetSwapInterval
DECLSPEC int SDLCALL SDL_GL_SetSwapInterval(int interval)
Set the swap interval for the current OpenGL context.
Definition: SDL_video.c:2843
close_code.h
data
GLint GLenum GLsizei GLsizei GLsizei GLint GLsizei const GLvoid * data
Definition: gl2ext.h:848
SDL_WINDOWEVENT_RESTORED
Definition: SDL_video.h:148
SDL_ShowWindow
DECLSPEC void SDLCALL SDL_ShowWindow(SDL_Window *window)
Show a window.
Definition: SDL_video.c:1722
SDL_GetDesktopDisplayMode
DECLSPEC int SDLCALL SDL_GetDesktopDisplayMode(int displayIndex, SDL_DisplayMode *mode)
Fill in information about the desktop display mode.
Definition: SDL_video.c:739
SDL_GL_UnloadLibrary
DECLSPEC void SDLCALL SDL_GL_UnloadLibrary(void)
Unload the OpenGL library previously loaded by SDL_GL_LoadLibrary().
Definition: SDL_video.c:2362
SDL_GetWindowPosition
DECLSPEC void SDLCALL SDL_GetWindowPosition(SDL_Window *window, int *x, int *y)
Get the position of a window.
Definition: SDL_video.c:1570
SDL_DisplayMode::driverdata
void * driverdata
Definition: SDL_video.h:59
SDL_GetDisplayMode
DECLSPEC int SDLCALL SDL_GetDisplayMode(int displayIndex, int modeIndex, SDL_DisplayMode *mode)
Fill in information about a specific display mode.
Definition: SDL_video.c:721
SDL_GL_DeleteContext
DECLSPEC void SDLCALL SDL_GL_DeleteContext(SDL_GLContext context)
Delete an OpenGL context.
Definition: SDL_video.c:2889
SDL_GL_ALPHA_SIZE
Definition: SDL_video.h:171
SDL_Window::min_w
int min_w
Definition: SDL_sysvideo.h:79
SDL_WindowEventID
SDL_WindowEventID
Event subtype for window events.
Definition: SDL_video.h:135
SDL_RestoreWindow
DECLSPEC void SDLCALL SDL_RestoreWindow(SDL_Window *window)
Restore the size and position of a minimized or maximized window.
Definition: SDL_video.c:1799
SDL_WINDOW_ALLOW_HIGHDPI
Definition: SDL_video.h:111
SDL_GetWindowFromID
DECLSPEC SDL_Window *SDLCALL SDL_GetWindowFromID(Uint32 id)
Get a window from a stored ID, or NULL if it doesn&#39;t exist.
Definition: SDL_video.c:1393
SDL_SetWindowTitle
DECLSPEC void SDLCALL SDL_SetWindowTitle(SDL_Window *window, const char *title)
Set the title of a window, in UTF-8 format.
Definition: SDL_video.c:1417
SDL_SetWindowData
DECLSPEC void *SDLCALL SDL_SetWindowData(SDL_Window *window, const char *name, void *userdata)
Associate an arbitrary named pointer with a window.
Definition: SDL_video.c:1467
SDL_WINDOWEVENT_FOCUS_LOST
Definition: SDL_video.h:153
SDL_GetWindowID
DECLSPEC Uint32 SDLCALL SDL_GetWindowID(SDL_Window *window)
Get the numeric ID of a window, for logging purposes.
Definition: SDL_video.c:1385
SDL_stdinc.h
SDL_CreateWindowFrom
DECLSPEC SDL_Window *SDLCALL SDL_CreateWindowFrom(const void *data)
Create an SDL window from an existing native window.
Definition: SDL_video.c:1285
SDL_GLprofile
SDL_GLprofile
Definition: SDL_video.h:193
SDL_IsScreenSaverEnabled
DECLSPEC SDL_bool SDLCALL SDL_IsScreenSaverEnabled(void)
Returns whether the screensaver is currently enabled (default on).
Definition: SDL_video.c:2226
SDL_SetWindowFullscreen
DECLSPEC int SDLCALL SDL_SetWindowFullscreen(SDL_Window *window, Uint32 flags)
Set a window&#39;s fullscreen state.
Definition: SDL_video.c:1814
SDL_GetDisplayBounds
DECLSPEC int SDLCALL SDL_GetDisplayBounds(int displayIndex, SDL_Rect *rect)
Get the desktop area represented by a display, with the primary display located at 0...
Definition: SDL_video.c:638
SDL_GetWindowData
DECLSPEC void *SDLCALL SDL_GetWindowData(SDL_Window *window, const char *name)
Retrieve the data pointer associated with a window.
Definition: SDL_video.c:1514
index
GLuint index
Definition: glew.h:1800
SDL_DisplayMode::h
int h
Definition: SDL_video.h:57
SDL_GL_CONTEXT_PROFILE_COMPATIBILITY
Definition: SDL_video.h:196
SDL_WINDOW_MINIMIZED
Definition: SDL_video.h:104
SDL_GetWindowDisplayIndex
DECLSPEC int SDLCALL SDL_GetWindowDisplayIndex(SDL_Window *window)
Get the display index associated with a window.
Definition: SDL_video.c:936
SDL_Window::title
char * title
Definition: SDL_sysvideo.h:75
SDL_GL_STENCIL_SIZE
Definition: SDL_video.h:175
SDL_GetWindowFlags
DECLSPEC Uint32 SDLCALL SDL_GetWindowFlags(SDL_Window *window)
Get the window flags.
Definition: SDL_video.c:1409
SDL_WINDOWEVENT_LEAVE
Definition: SDL_video.h:151
SDL_SetWindowBordered
DECLSPEC void SDLCALL SDL_SetWindowBordered(SDL_Window *window, SDL_bool bordered)
Set the border state of a window.
Definition: SDL_video.c:1593
SDL_GL_BLUE_SIZE
Definition: SDL_video.h:170
SDL_GetVideoDriver
DECLSPEC const char *SDLCALL SDL_GetVideoDriver(int index)
Get the name of a built in video driver.
Definition: SDL_video.c:394
SDL_EnableScreenSaver
DECLSPEC void SDLCALL SDL_EnableScreenSaver(void)
Allow the screen to be blanked by a screensaver.
Definition: SDL_video.c:2235
SDL_WINDOWEVENT_CLOSE
Definition: SDL_video.h:154
SDL_GetCurrentVideoDriver
DECLSPEC const char *SDLCALL SDL_GetCurrentVideoDriver(void)
Returns the name of the currently initialized video driver.
Definition: SDL_video.c:538
SDL_Window::brightness
float brightness
Definition: SDL_sysvideo.h:88
SDL_GL_RED_SIZE
Definition: SDL_video.h:168
SDL_GL_GetDrawableSize
DECLSPEC void SDLCALL SDL_GL_GetDrawableSize(SDL_Window *window, int *w, int *h)
Get the size of a window&#39;s underlying drawable (for use with glViewport).
Definition: SDL_video.c:2831
SDL_MaximizeWindow
DECLSPEC void SDLCALL SDL_MaximizeWindow(SDL_Window *window)
Make a window as large as possible.
Definition: SDL_video.c:1767
SDL_GL_DEPTH_SIZE
Definition: SDL_video.h:174
SDL_pixels.h
y
EGLSurface EGLint EGLint y
Definition: eglext.h:293
SDL_WINDOW_INPUT_FOCUS
Definition: SDL_video.h:107
SDL_WINDOW_RESIZABLE
Definition: SDL_video.h:103
SDL_CreateWindow
DECLSPEC SDL_Window *SDLCALL SDL_CreateWindow(const char *title, int x, int y, int w, int h, Uint32 flags)
Create a window with the specified position, dimensions, and flags.
Definition: SDL_video.c:1190
SDL_GL_BUFFER_SIZE
Definition: SDL_video.h:172
SDL_WINDOW_BORDERLESS
Definition: SDL_video.h:102
SDL_Window::min_h
int min_h
Definition: SDL_sysvideo.h:79
value
EGLSurface EGLint void ** value
Definition: eglext.h:301
SDL_SetWindowPosition
DECLSPEC void SDLCALL SDL_SetWindowPosition(SDL_Window *window, int x, int y)
Set the position of a window.
Definition: SDL_video.c:1535
SDL_WINDOWEVENT_SHOWN
Definition: SDL_video.h:138
SDL_Window::icon
SDL_Surface * icon
Definition: SDL_sysvideo.h:76
flags
GLenum GLsizei GLsizei GLsizei GLsizei GLbitfield flags
Definition: glew.h:2767
SDL_Window::max_w
int max_w
Definition: SDL_sysvideo.h:80
SDL_UpdateWindowSurface
DECLSPEC int SDLCALL SDL_UpdateWindowSurface(SDL_Window *window)
Copy the window surface to the screen.
Definition: SDL_video.c:1877
SDL_Window
Definition: SDL_sysvideo.h:71
SDL_WINDOW_MAXIMIZED
Definition: SDL_video.h:105
SDL_RaiseWindow
DECLSPEC void SDLCALL SDL_RaiseWindow(SDL_Window *window)
Raise a window above other windows and set the input focus.
Definition: SDL_video.c:1754
SDL_GL_LoadLibrary
DECLSPEC int SDLCALL SDL_GL_LoadLibrary(const char *path)
Dynamically load an OpenGL library.
Definition: SDL_video.c:2315
SDL_WINDOW_FULLSCREEN
Definition: SDL_video.h:98
SDL_WINDOWEVENT_ENTER
Definition: SDL_video.h:150
SDL_WINDOWEVENT_EXPOSED
Definition: SDL_video.h:140
SDL_GetNumVideoDrivers
DECLSPEC int SDLCALL SDL_GetNumVideoDrivers(void)
Get the number of video drivers compiled into SDL.
Definition: SDL_video.c:388
SDL_DestroyWindow
DECLSPEC void SDLCALL SDL_DestroyWindow(SDL_Window *window)
Destroy a window.
Definition: SDL_video.c:2154
SDL_DisableScreenSaver
DECLSPEC void SDLCALL SDL_DisableScreenSaver(void)
Prevent the screen from being blanked by a screensaver.
Definition: SDL_video.c:2250
SDL_Window::max_h
int max_h
Definition: SDL_sysvideo.h:80
w
GLint GLint GLint GLint GLint w
Definition: gl2ext.h:1215
Uint16
uint16_t Uint16
An unsigned 16-bit integer type.
Definition: SDL_stdinc.h:137
SDL_WINDOW_OPENGL
Definition: SDL_video.h:99
SDL_WINDOWEVENT_RESIZED
Definition: SDL_video.h:144
SDL_GL_MULTISAMPLESAMPLES
Definition: SDL_video.h:182
SDL_GetNumVideoDisplays
DECLSPEC int SDLCALL SDL_GetNumVideoDisplays(void)
Returns the number of available video displays.
Definition: SDL_video.c:597
SDL_GL_ExtensionSupported
DECLSPEC SDL_bool SDLCALL SDL_GL_ExtensionSupported(const char *extension)
Return true if an OpenGL extension is supported for the current context.
Definition: SDL_video.c:2385
SDL_DisplayMode::format
Uint32 format
Definition: SDL_video.h:55
context
TParseContext * context
Definition: glslang_tab.cpp:1907
SDL_WINDOW_FOREIGN
Definition: SDL_video.h:110
SDL_GL_CONTEXT_DEBUG_FLAG
Definition: SDL_video.h:202
SDL_GL_CONTEXT_PROFILE_ES
Definition: SDL_video.h:197
blue
GLclampf GLclampf blue
Definition: glew.h:1506
SDL_WINDOWEVENT_MOVED
Definition: SDL_video.h:142
SDL_SetWindowGammaRamp
DECLSPEC int SDLCALL SDL_SetWindowGammaRamp(SDL_Window *window, const Uint16 *red, const Uint16 *green, const Uint16 *blue)
Set the gamma ramp for a window.
Definition: SDL_video.c:1928
SDL_GL_CONTEXT_RESET_ISOLATION_FLAG
Definition: SDL_video.h:205
SDL_GL_CONTEXT_FLAGS
Definition: SDL_video.h:188
mode
GLenum mode
Definition: glew.h:2394
SDL_WINDOW_INPUT_GRABBED
Definition: SDL_video.h:106
SDL_GL_GetCurrentContext
DECLSPEC SDL_GLContext SDLCALL SDL_GL_GetCurrentContext(void)
Get the currently active OpenGL context.
Definition: SDL_video.c:2822
SDL_GL_CONTEXT_PROFILE_CORE
Definition: SDL_video.h:195
SDL_WINDOW_FULLSCREEN_DESKTOP
Definition: SDL_video.h:109
SDL_GL_ACCELERATED_VISUAL
Definition: SDL_video.h:183
SDL_Rect
A rectangle, with the origin at the upper left.
Definition: SDL_rect.h:63
SDL_GL_CONTEXT_ROBUST_ACCESS_FLAG
Definition: SDL_video.h:204
SDL_UpdateWindowSurfaceRects
DECLSPEC int SDLCALL SDL_UpdateWindowSurfaceRects(SDL_Window *window, const SDL_Rect *rects, int numrects)
Copy a number of rectangles on the window surface to the screen.
Definition: SDL_video.c:1891
SDL_GL_SwapWindow
DECLSPEC void SDLCALL SDL_GL_SwapWindow(SDL_Window *window)
Swap the OpenGL buffers for a window, if double-buffering is supported.
Definition: SDL_video.c:2871
SDL_rect.h