zenilib  0.5.3.0
 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 {
56  int w;
57  int h;
59  void *driverdata;
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,
107  SDL_WINDOW_INPUT_FOCUS = 0x00000200,
108  SDL_WINDOW_MOUSE_FOCUS = 0x00000400,
110  SDL_WINDOW_FOREIGN = 0x00000800,
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 {
157 
161 typedef void *SDL_GLContext;
162 
166 typedef enum
167 {
191 } SDL_GLattr;
192 
193 typedef enum
194 {
197  SDL_GL_CONTEXT_PROFILE_ES = 0x0004 /* GLX_CONTEXT_ES2_PROFILE_BIT_EXT */
198 } SDL_GLprofile;
199 
200 typedef enum
201 {
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,
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 
352 
368  const SDL_DisplayMode
369  * mode);
370 
380 
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 
426 
431 
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 
560  int min_w, int min_h);
561 
573  int *w, int *h);
574 
589  int max_w, int max_h);
590 
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 
671  Uint32 flags);
672 
687 
697 
707  const SDL_Rect * rects,
708  int numrects);
709 
718 extern DECLSPEC void SDLCALL SDL_SetWindowGrab(SDL_Window * window,
719  SDL_bool grabbed);
720 
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 
768  const Uint16 * red,
769  const Uint16 * green,
770  const Uint16 * blue);
771 
788  Uint16 * red,
789  Uint16 * green,
790  Uint16 * blue);
791 
795 extern DECLSPEC void SDLCALL SDL_DestroyWindow(SDL_Window * window);
796 
797 
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 
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 
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: */
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
DECLSPEC const char *SDLCALL SDL_GetWindowTitle(SDL_Window *window)
Get the title of a window, in UTF-8 format.
Definition: SDL_video.c:1437
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
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
The flags on a window.
Definition: SDL_video.h:96
DECLSPEC void *SDLCALL SDL_GL_GetProcAddress(const char *proc)
Get the address of an OpenGL function.
Definition: SDL_video.c:2340
GLfloat GLfloat GLfloat GLfloat h
Definition: glew.h:7294
DECLSPEC void SDLCALL SDL_VideoQuit(void)
Shuts down the video subsystem.
Definition: SDL_video.c:2265
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
DECLSPEC int SDLCALL SDL_GL_GetSwapInterval(void)
Get the swap interval for the current OpenGL context.
Definition: SDL_video.c:2857
DECLSPEC float SDLCALL SDL_GetWindowBrightness(SDL_Window *window)
Get the brightness (gamma correction) for a window.
Definition: SDL_video.c:1920
SDL_GLcontextFlag
Definition: SDL_video.h:200
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
Definition: SDL_stdinc.h:116
DECLSPEC int SDLCALL SDL_VideoInit(const char *driver_name)
Initialize the video subsystem, optionally specifying a video driver.
Definition: SDL_video.c:406
DECLSPEC SDL_bool SDLCALL SDL_GetWindowGrab(SDL_Window *window)
Get a window&#39;s input grab mode.
Definition: SDL_video.c:2037
EGLSurface EGLint x
Definition: eglext.h:293
DECLSPEC SDL_Window *SDLCALL SDL_GL_GetCurrentWindow(void)
Get the currently active OpenGL window.
Definition: SDL_video.c:2812
A collection of pixels used in software blitting.
Definition: SDL_surface.h:69
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
The structure that defines a display mode.
Definition: SDL_video.h:53
SDL_GLattr
OpenGL configuration attributes.
Definition: SDL_video.h:166
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
DECLSPEC int SDLCALL SDL_GetNumDisplayModes(int displayIndex)
Returns the number of available display modes.
Definition: SDL_video.c:713
void * SDL_GLContext
An opaque handle to an OpenGL context.
Definition: SDL_video.h:161
#define DECLSPEC
Definition: begin_code.h:62
EGLImageKHR EGLint * name
Definition: eglext.h:284
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
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
GLclampf green
Definition: glew.h:1506
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
#define SDLCALL
Definition: begin_code.h:72
DECLSPEC int SDLCALL SDL_SetWindowBrightness(SDL_Window *window, float brightness)
Set the brightness (gamma correction) for a window.
Definition: SDL_video.c:1904
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
GLsizei const GLchar *const * path
Definition: glew.h:5828
DECLSPEC int SDLCALL SDL_GetCurrentDisplayMode(int displayIndex, SDL_DisplayMode *mode)
Fill in information about the current display mode.
Definition: SDL_video.c:753
DECLSPEC void SDLCALL SDL_SetWindowGrab(SDL_Window *window, SDL_bool grabbed)
Set a window&#39;s input grab mode.
Definition: SDL_video.c:2021
DECLSPEC void SDLCALL SDL_HideWindow(SDL_Window *window)
Hide a window.
Definition: SDL_video.c:1737
DECLSPEC void SDLCALL SDL_SetWindowIcon(SDL_Window *window, SDL_Surface *icon)
Set the icon for a window.
Definition: SDL_video.c:1445
DECLSPEC SDL_Surface *SDLCALL SDL_GetWindowSurface(SDL_Window *window)
Get the SDL surface associated with the window.
Definition: SDL_video.c:1858
const GLubyte GLuint red
Definition: SDL_glfuncs.h:57
uint32_t Uint32
An unsigned 32-bit integer type.
Definition: SDL_stdinc.h:145
DECLSPEC Uint32 SDLCALL SDL_GetWindowPixelFormat(SDL_Window *window)
Get the pixel format associated with the window.
Definition: SDL_video.c:1059
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
DECLSPEC int SDLCALL SDL_GL_SetAttribute(SDL_GLattr attr, int value)
Set an OpenGL window attribute before window creation.
Definition: SDL_video.c:2469
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
DECLSPEC void SDLCALL SDL_MinimizeWindow(SDL_Window *window)
Minimize a window to an iconic representation.
Definition: SDL_video.c:1783
DECLSPEC const char *SDLCALL SDL_GetDisplayName(int displayIndex)
Get the name of a display in UTF-8 encoding.
Definition: SDL_video.c:630
DECLSPEC int SDLCALL SDL_GL_SetSwapInterval(int interval)
Set the swap interval for the current OpenGL context.
Definition: SDL_video.c:2843
GLint GLenum GLsizei GLsizei GLsizei GLint GLsizei const GLvoid * data
Definition: gl2ext.h:848
DECLSPEC void SDLCALL SDL_ShowWindow(SDL_Window *window)
Show a window.
Definition: SDL_video.c:1722
DECLSPEC int SDLCALL SDL_GetDesktopDisplayMode(int displayIndex, SDL_DisplayMode *mode)
Fill in information about the desktop display mode.
Definition: SDL_video.c:739
DECLSPEC void SDLCALL SDL_GL_UnloadLibrary(void)
Unload the OpenGL library previously loaded by SDL_GL_LoadLibrary().
Definition: SDL_video.c:2362
DECLSPEC void SDLCALL SDL_GetWindowPosition(SDL_Window *window, int *x, int *y)
Get the position of a window.
Definition: SDL_video.c:1570
void * driverdata
Definition: SDL_video.h:59
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
DECLSPEC void SDLCALL SDL_GL_DeleteContext(SDL_GLContext context)
Delete an OpenGL context.
Definition: SDL_video.c:2889
SDL_WindowEventID
Event subtype for window events.
Definition: SDL_video.h:135
DECLSPEC void SDLCALL SDL_RestoreWindow(SDL_Window *window)
Restore the size and position of a minimized or maximized window.
Definition: SDL_video.c:1799
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
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
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
DECLSPEC Uint32 SDLCALL SDL_GetWindowID(SDL_Window *window)
Get the numeric ID of a window, for logging purposes.
Definition: SDL_video.c:1385
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
Definition: SDL_video.h:193
DECLSPEC SDL_bool SDLCALL SDL_IsScreenSaverEnabled(void)
Returns whether the screensaver is currently enabled (default on).
Definition: SDL_video.c:2226
DECLSPEC int SDLCALL SDL_SetWindowFullscreen(SDL_Window *window, Uint32 flags)
Set a window&#39;s fullscreen state.
Definition: SDL_video.c:1814
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
DECLSPEC void *SDLCALL SDL_GetWindowData(SDL_Window *window, const char *name)
Retrieve the data pointer associated with a window.
Definition: SDL_video.c:1514
GLuint index
Definition: glew.h:1800
DECLSPEC int SDLCALL SDL_GetWindowDisplayIndex(SDL_Window *window)
Get the display index associated with a window.
Definition: SDL_video.c:936
char * title
Definition: SDL_sysvideo.h:75
DECLSPEC Uint32 SDLCALL SDL_GetWindowFlags(SDL_Window *window)
Get the window flags.
Definition: SDL_video.c:1409
DECLSPEC void SDLCALL SDL_SetWindowBordered(SDL_Window *window, SDL_bool bordered)
Set the border state of a window.
Definition: SDL_video.c:1593
DECLSPEC const char *SDLCALL SDL_GetVideoDriver(int index)
Get the name of a built in video driver.
Definition: SDL_video.c:394
DECLSPEC void SDLCALL SDL_EnableScreenSaver(void)
Allow the screen to be blanked by a screensaver.
Definition: SDL_video.c:2235
DECLSPEC const char *SDLCALL SDL_GetCurrentVideoDriver(void)
Returns the name of the currently initialized video driver.
Definition: SDL_video.c:538
float brightness
Definition: SDL_sysvideo.h:88
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
DECLSPEC void SDLCALL SDL_MaximizeWindow(SDL_Window *window)
Make a window as large as possible.
Definition: SDL_video.c:1767
EGLSurface EGLint EGLint y
Definition: eglext.h:293
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
EGLSurface EGLint void ** value
Definition: eglext.h:301
DECLSPEC void SDLCALL SDL_SetWindowPosition(SDL_Window *window, int x, int y)
Set the position of a window.
Definition: SDL_video.c:1535
SDL_Surface * icon
Definition: SDL_sysvideo.h:76
GLenum GLsizei GLsizei GLsizei GLsizei GLbitfield flags
Definition: glew.h:2767
DECLSPEC int SDLCALL SDL_UpdateWindowSurface(SDL_Window *window)
Copy the window surface to the screen.
Definition: SDL_video.c:1877
DECLSPEC void SDLCALL SDL_RaiseWindow(SDL_Window *window)
Raise a window above other windows and set the input focus.
Definition: SDL_video.c:1754
DECLSPEC int SDLCALL SDL_GL_LoadLibrary(const char *path)
Dynamically load an OpenGL library.
Definition: SDL_video.c:2315
DECLSPEC int SDLCALL SDL_GetNumVideoDrivers(void)
Get the number of video drivers compiled into SDL.
Definition: SDL_video.c:388
DECLSPEC void SDLCALL SDL_DestroyWindow(SDL_Window *window)
Destroy a window.
Definition: SDL_video.c:2154
DECLSPEC void SDLCALL SDL_DisableScreenSaver(void)
Prevent the screen from being blanked by a screensaver.
Definition: SDL_video.c:2250
GLint GLint GLint GLint GLint w
Definition: gl2ext.h:1215
uint16_t Uint16
An unsigned 16-bit integer type.
Definition: SDL_stdinc.h:137
DECLSPEC int SDLCALL SDL_GetNumVideoDisplays(void)
Returns the number of available video displays.
Definition: SDL_video.c:597
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
Uint32 format
Definition: SDL_video.h:55
TParseContext * context
GLclampf GLclampf blue
Definition: glew.h:1506
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
GLenum mode
Definition: glew.h:2394
DECLSPEC SDL_GLContext SDLCALL SDL_GL_GetCurrentContext(void)
Get the currently active OpenGL context.
Definition: SDL_video.c:2822
A rectangle, with the origin at the upper left.
Definition: SDL_rect.h:63
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
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