My Project
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
SDL_video.h
Go to the documentation of this file.
1 /*
2  Simple DirectMedia Layer
3  Copyright (C) 1997-2014 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,
109  SDL_WINDOW_FULLSCREEN_DESKTOP = ( SDL_WINDOW_FULLSCREEN | 0x00001000 ),
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 {
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_GL_FRAMEBUFFER_SRGB_CAPABLE
192 } SDL_GLattr;
193 
194 typedef enum
195 {
196  SDL_GL_CONTEXT_PROFILE_CORE = 0x0001,
197  SDL_GL_CONTEXT_PROFILE_COMPATIBILITY = 0x0002,
198  SDL_GL_CONTEXT_PROFILE_ES = 0x0004 /* GLX_CONTEXT_ES2_PROFILE_BIT_EXT */
199 } SDL_GLprofile;
200 
201 typedef enum
202 {
203  SDL_GL_CONTEXT_DEBUG_FLAG = 0x0001,
204  SDL_GL_CONTEXT_FORWARD_COMPATIBLE_FLAG = 0x0002,
205  SDL_GL_CONTEXT_ROBUST_ACCESS_FLAG = 0x0004,
206  SDL_GL_CONTEXT_RESET_ISOLATION_FLAG = 0x0008
207 } SDL_GLcontextFlag;
208 
209 
210 /* Function prototypes */
211 
217 extern DECLSPEC int SDLCALL SDL_GetNumVideoDrivers(void);
218 
227 extern DECLSPEC const char *SDLCALL SDL_GetVideoDriver(int index);
228 
243 extern DECLSPEC int SDLCALL SDL_VideoInit(const char *driver_name);
244 
252 extern DECLSPEC void SDLCALL SDL_VideoQuit(void);
253 
263 extern DECLSPEC const char *SDLCALL SDL_GetCurrentVideoDriver(void);
264 
270 extern DECLSPEC int SDLCALL SDL_GetNumVideoDisplays(void);
271 
279 extern DECLSPEC const char * SDLCALL SDL_GetDisplayName(int displayIndex);
280 
289 extern DECLSPEC int SDLCALL SDL_GetDisplayBounds(int displayIndex, SDL_Rect * rect);
290 
296 extern DECLSPEC int SDLCALL SDL_GetNumDisplayModes(int displayIndex);
297 
309 extern DECLSPEC int SDLCALL SDL_GetDisplayMode(int displayIndex, int modeIndex,
310  SDL_DisplayMode * mode);
311 
315 extern DECLSPEC int SDLCALL SDL_GetDesktopDisplayMode(int displayIndex, SDL_DisplayMode * mode);
316 
320 extern DECLSPEC int SDLCALL SDL_GetCurrentDisplayMode(int displayIndex, SDL_DisplayMode * mode);
321 
322 
344 extern DECLSPEC SDL_DisplayMode * SDLCALL SDL_GetClosestDisplayMode(int displayIndex, const SDL_DisplayMode * mode, SDL_DisplayMode * closest);
345 
352 extern DECLSPEC int SDLCALL SDL_GetWindowDisplayIndex(SDL_Window * window);
353 
368 extern DECLSPEC int SDLCALL SDL_SetWindowDisplayMode(SDL_Window * window,
369  const SDL_DisplayMode
370  * mode);
371 
379 extern DECLSPEC int SDLCALL SDL_GetWindowDisplayMode(SDL_Window * window,
380  SDL_DisplayMode * mode);
381 
385 extern DECLSPEC Uint32 SDLCALL SDL_GetWindowPixelFormat(SDL_Window * window);
386 
408 extern DECLSPEC SDL_Window * SDLCALL SDL_CreateWindow(const char *title,
409  int x, int y, int w,
410  int h, Uint32 flags);
411 
421 extern DECLSPEC SDL_Window * SDLCALL SDL_CreateWindowFrom(const void *data);
422 
426 extern DECLSPEC Uint32 SDLCALL SDL_GetWindowID(SDL_Window * window);
427 
431 extern DECLSPEC SDL_Window * SDLCALL SDL_GetWindowFromID(Uint32 id);
432 
436 extern DECLSPEC Uint32 SDLCALL SDL_GetWindowFlags(SDL_Window * window);
437 
443 extern DECLSPEC void SDLCALL SDL_SetWindowTitle(SDL_Window * window,
444  const char *title);
445 
451 extern DECLSPEC const char *SDLCALL SDL_GetWindowTitle(SDL_Window * window);
452 
459 extern DECLSPEC void SDLCALL SDL_SetWindowIcon(SDL_Window * window,
460  SDL_Surface * icon);
461 
475 extern DECLSPEC void* SDLCALL SDL_SetWindowData(SDL_Window * window,
476  const char *name,
477  void *userdata);
478 
489 extern DECLSPEC void *SDLCALL SDL_GetWindowData(SDL_Window * window,
490  const char *name);
491 
505 extern DECLSPEC void SDLCALL SDL_SetWindowPosition(SDL_Window * window,
506  int x, int y);
507 
517 extern DECLSPEC void SDLCALL SDL_GetWindowPosition(SDL_Window * window,
518  int *x, int *y);
519 
532 extern DECLSPEC void SDLCALL SDL_SetWindowSize(SDL_Window * window, int w,
533  int h);
534 
544 extern DECLSPEC void SDLCALL SDL_GetWindowSize(SDL_Window * window, int *w,
545  int *h);
546 
560 extern DECLSPEC void SDLCALL SDL_SetWindowMinimumSize(SDL_Window * window,
561  int min_w, int min_h);
562 
573 extern DECLSPEC void SDLCALL SDL_GetWindowMinimumSize(SDL_Window * window,
574  int *w, int *h);
575 
589 extern DECLSPEC void SDLCALL SDL_SetWindowMaximumSize(SDL_Window * window,
590  int max_w, int max_h);
591 
602 extern DECLSPEC void SDLCALL SDL_GetWindowMaximumSize(SDL_Window * window,
603  int *w, int *h);
604 
619 extern DECLSPEC void SDLCALL SDL_SetWindowBordered(SDL_Window * window,
620  SDL_bool bordered);
621 
627 extern DECLSPEC void SDLCALL SDL_ShowWindow(SDL_Window * window);
628 
634 extern DECLSPEC void SDLCALL SDL_HideWindow(SDL_Window * window);
635 
639 extern DECLSPEC void SDLCALL SDL_RaiseWindow(SDL_Window * window);
640 
646 extern DECLSPEC void SDLCALL SDL_MaximizeWindow(SDL_Window * window);
647 
653 extern DECLSPEC void SDLCALL SDL_MinimizeWindow(SDL_Window * window);
654 
661 extern DECLSPEC void SDLCALL SDL_RestoreWindow(SDL_Window * window);
662 
671 extern DECLSPEC int SDLCALL SDL_SetWindowFullscreen(SDL_Window * window,
672  Uint32 flags);
673 
687 extern DECLSPEC SDL_Surface * SDLCALL SDL_GetWindowSurface(SDL_Window * window);
688 
697 extern DECLSPEC int SDLCALL SDL_UpdateWindowSurface(SDL_Window * window);
698 
707 extern DECLSPEC int SDLCALL SDL_UpdateWindowSurfaceRects(SDL_Window * window,
708  const SDL_Rect * rects,
709  int numrects);
710 
719 extern DECLSPEC void SDLCALL SDL_SetWindowGrab(SDL_Window * window,
720  SDL_bool grabbed);
721 
729 extern DECLSPEC SDL_bool SDLCALL SDL_GetWindowGrab(SDL_Window * window);
730 
739 extern DECLSPEC int SDLCALL SDL_SetWindowBrightness(SDL_Window * window, float brightness);
740 
748 extern DECLSPEC float SDLCALL SDL_GetWindowBrightness(SDL_Window * window);
749 
768 extern DECLSPEC int SDLCALL SDL_SetWindowGammaRamp(SDL_Window * window,
769  const Uint16 * red,
770  const Uint16 * green,
771  const Uint16 * blue);
772 
788 extern DECLSPEC int SDLCALL SDL_GetWindowGammaRamp(SDL_Window * window,
789  Uint16 * red,
790  Uint16 * green,
791  Uint16 * blue);
792 
796 extern DECLSPEC void SDLCALL SDL_DestroyWindow(SDL_Window * window);
797 
798 
805 extern DECLSPEC SDL_bool SDLCALL SDL_IsScreenSaverEnabled(void);
806 
813 extern DECLSPEC void SDLCALL SDL_EnableScreenSaver(void);
814 
821 extern DECLSPEC void SDLCALL SDL_DisableScreenSaver(void);
822 
823 
827 /* @{ */
828 
847 extern DECLSPEC int SDLCALL SDL_GL_LoadLibrary(const char *path);
848 
852 extern DECLSPEC void *SDLCALL SDL_GL_GetProcAddress(const char *proc);
853 
859 extern DECLSPEC void SDLCALL SDL_GL_UnloadLibrary(void);
860 
865 extern DECLSPEC SDL_bool SDLCALL SDL_GL_ExtensionSupported(const char
866  *extension);
867 
871 extern DECLSPEC void SDLCALL SDL_GL_ResetAttributes(void);
872 
876 extern DECLSPEC int SDLCALL SDL_GL_SetAttribute(SDL_GLattr attr, int value);
877 
881 extern DECLSPEC int SDLCALL SDL_GL_GetAttribute(SDL_GLattr attr, int *value);
882 
889 extern DECLSPEC SDL_GLContext SDLCALL SDL_GL_CreateContext(SDL_Window *
890  window);
891 
897 extern DECLSPEC int SDLCALL SDL_GL_MakeCurrent(SDL_Window * window,
898  SDL_GLContext context);
899 
903 extern DECLSPEC SDL_Window* SDLCALL SDL_GL_GetCurrentWindow(void);
904 
908 extern DECLSPEC SDL_GLContext SDLCALL SDL_GL_GetCurrentContext(void);
909 
925 extern DECLSPEC void SDLCALL SDL_GL_GetDrawableSize(SDL_Window * window, int *w,
926  int *h);
927 
940 extern DECLSPEC int SDLCALL SDL_GL_SetSwapInterval(int interval);
941 
953 extern DECLSPEC int SDLCALL SDL_GL_GetSwapInterval(void);
954 
959 extern DECLSPEC void SDLCALL SDL_GL_SwapWindow(SDL_Window * window);
960 
966 extern DECLSPEC void SDLCALL SDL_GL_DeleteContext(SDL_GLContext context);
967 
968 /* @} *//* OpenGL support functions */
969 
970 
971 /* Ends C function definitions when using C++ */
972 #ifdef __cplusplus
973 }
974 #endif
975 #include "close_code.h"
976 
977 #endif /* _SDL_video_h */
978 
979 /* vi: set ts=4 sw=4 expandtab: */
DECLSPEC void SDLCALL SDL_GetWindowMinimumSize(SDL_Window *window, int *w, int *h)
Get the minimum size of a window's client area.
Definition: SDL_video.h:147
Definition: SDL_video.h:102
struct SDL_Window SDL_Window
The type used to identify a window.
Definition: SDL_video.h:89
DECLSPEC void SDLCALL SDL_GL_GetDrawableSize(SDL_Window *window, int *w, int *h)
Get the size of a window's underlying drawable (for use with glViewport).
DECLSPEC float SDLCALL SDL_GetWindowBrightness(SDL_Window *window)
Get the brightness (gamma correction) for a window.
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...
DECLSPEC void SDLCALL SDL_DestroyWindow(SDL_Window *window)
Destroy a window.
Definition: SDL_video.h:146
DECLSPEC void SDLCALL SDL_GL_DeleteContext(SDL_GLContext context)
Delete an OpenGL context.
DECLSPEC int SDLCALL SDL_VideoInit(const char *driver_name)
Initialize the video subsystem, optionally specifying a video driver.
uint32_t Uint32
An unsigned 32-bit integer type.
Definition: SDL_stdinc.h:155
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.
DECLSPEC void SDLCALL SDL_RestoreWindow(SDL_Window *window)
Restore the size and position of a minimized or maximized window.
DECLSPEC SDL_DisplayMode *SDLCALL SDL_GetClosestDisplayMode(int displayIndex, const SDL_DisplayMode *mode, SDL_DisplayMode *closest)
Get the closest match to the requested display mode.
DECLSPEC int SDLCALL SDL_GetWindowDisplayIndex(SDL_Window *window)
Get the display index associated with a window.
uint16_t Uint16
An unsigned 16-bit integer type.
Definition: SDL_stdinc.h:147
DECLSPEC void SDLCALL SDL_MaximizeWindow(SDL_Window *window)
Make a window as large as possible.
DECLSPEC int SDLCALL SDL_SetWindowGammaRamp(SDL_Window *window, const Uint16 *red, const Uint16 *green, const Uint16 *blue)
Set the gamma ramp for a window.
int w
Definition: SDL_video.h:56
DECLSPEC SDL_GLContext SDLCALL SDL_GL_CreateContext(SDL_Window *window)
Create an OpenGL context for use with an OpenGL window, and make it current.
DECLSPEC int SDLCALL SDL_GL_SetAttribute(SDL_GLattr attr, int value)
Set an OpenGL window attribute before window creation.
DECLSPEC void SDLCALL SDL_GetWindowPosition(SDL_Window *window, int *x, int *y)
Get the position of a window.
DECLSPEC SDL_GLContext SDLCALL SDL_GL_GetCurrentContext(void)
Get the currently active OpenGL context.
Definition: SDL_video.h:144
DECLSPEC void SDLCALL SDL_GL_ResetAttributes(void)
Reset all previously set OpenGL context attributes to their default values.
Definition: SDL_video.h:137
DECLSPEC int SDLCALL SDL_GL_MakeCurrent(SDL_Window *window, SDL_GLContext context)
Set up an OpenGL context for rendering into an OpenGL window.
DECLSPEC void SDLCALL SDL_ShowWindow(SDL_Window *window)
Show a window.
DECLSPEC void SDLCALL SDL_SetWindowTitle(SDL_Window *window, const char *title)
Set the title of a window, in UTF-8 format.
A rectangle, with the origin at the upper left.
Definition: SDL_rect.h:63
DECLSPEC void SDLCALL SDL_SetWindowPosition(SDL_Window *window, int x, int y)
Set the position of a window.
DECLSPEC void SDLCALL SDL_DisableScreenSaver(void)
Prevent the screen from being blanked by a screensaver.
Definition: SDL_video.h:142
DECLSPEC void *SDLCALL SDL_SetWindowData(SDL_Window *window, const char *name, void *userdata)
Associate an arbitrary named pointer with a window.
Definition: SDL_video.h:106
DECLSPEC SDL_Window *SDLCALL SDL_GL_GetCurrentWindow(void)
Get the currently active OpenGL window.
Definition: SDL_video.h:154
DECLSPEC SDL_Surface *SDLCALL SDL_GetWindowSurface(SDL_Window *window)
Get the SDL surface associated with the window.
DECLSPEC SDL_Window *SDLCALL SDL_GetWindowFromID(Uint32 id)
Get a window from a stored ID, or NULL if it doesn't exist.
A collection of pixels used in software blitting.
Definition: SDL_surface.h:69
DECLSPEC void SDLCALL SDL_GL_SwapWindow(SDL_Window *window)
Swap the OpenGL buffers for a window, if double-buffering is supported.
Definition: SDL_video.h:98
DECLSPEC int SDLCALL SDL_SetWindowFullscreen(SDL_Window *window, Uint32 flags)
Set a window's fullscreen state.
DECLSPEC void *SDLCALL SDL_GL_GetProcAddress(const char *proc)
Get the address of an OpenGL function.
Definition: SDL_video.h:152
DECLSPEC int SDLCALL SDL_GetNumVideoDisplays(void)
Returns the number of available video displays.
Definition: SDL_video.h:104
Definition: SDL_video.h:103
void * driverdata
Definition: SDL_video.h:59
SDL_WindowEventID
Event subtype for window events.
Definition: SDL_video.h:135
Definition: SDL_video.h:139
int h
Definition: SDL_video.h:57
DECLSPEC int SDLCALL SDL_GetNumVideoDrivers(void)
Get the number of video drivers compiled into SDL.
DECLSPEC int SDLCALL SDL_UpdateWindowSurface(SDL_Window *window)
Copy the window surface to the screen.
DECLSPEC void SDLCALL SDL_SetWindowMinimumSize(SDL_Window *window, int min_w, int min_h)
Set the minimum size of a window's client area.
DECLSPEC void SDLCALL SDL_GetWindowSize(SDL_Window *window, int *w, int *h)
Get the size of a window's client area.
DECLSPEC const char *SDLCALL SDL_GetDisplayName(int displayIndex)
Get the name of a display in UTF-8 encoding.
DECLSPEC SDL_bool SDLCALL SDL_GetWindowGrab(SDL_Window *window)
Get a window's input grab mode.
DECLSPEC int SDLCALL SDL_GL_GetAttribute(SDL_GLattr attr, int *value)
Get the actual value for an attribute from the current context.
DECLSPEC void SDLCALL SDL_SetWindowIcon(SDL_Window *window, SDL_Surface *icon)
Set the icon for a window.
DECLSPEC int SDLCALL SDL_SetWindowDisplayMode(SDL_Window *window, const SDL_DisplayMode *mode)
Set the display mode used when a fullscreen window is visible.
DECLSPEC SDL_Window *SDLCALL SDL_CreateWindowFrom(const void *data)
Create an SDL window from an existing native window.
Definition: SDL_video.h:148
DECLSPEC int SDLCALL SDL_GL_LoadLibrary(const char *path)
Dynamically load an OpenGL library.
DECLSPEC SDL_bool SDLCALL SDL_IsScreenSaverEnabled(void)
Returns whether the screensaver is currently enabled (default on).
DECLSPEC Uint32 SDLCALL SDL_GetWindowFlags(SDL_Window *window)
Get the window flags.
Definition: SDL_video.h:105
DECLSPEC void SDLCALL SDL_GetWindowMaximumSize(SDL_Window *window, int *w, int *h)
Get the maximum size of a window's client area.
Definition: SDL_video.h:138
DECLSPEC int SDLCALL SDL_GetDisplayMode(int displayIndex, int modeIndex, SDL_DisplayMode *mode)
Fill in information about a specific display mode.
Definition: SDL_video.h:151
DECLSPEC Uint32 SDLCALL SDL_GetWindowPixelFormat(SDL_Window *window)
Get the pixel format associated with the window.
Definition: SDL_video.h:140
Definition: SDL_video.h:111
DECLSPEC int SDLCALL SDL_GetWindowGammaRamp(SDL_Window *window, Uint16 *red, Uint16 *green, Uint16 *blue)
Get the gamma ramp for a window.
Definition: SDL_video.h:108
SDL_WindowFlags
The flags on a window.
Definition: SDL_video.h:96
SDL_GLattr
OpenGL configuration attributes.
Definition: SDL_video.h:166
The structure that defines a display mode.
Definition: SDL_video.h:53
DECLSPEC void SDLCALL SDL_SetWindowMaximumSize(SDL_Window *window, int max_w, int max_h)
Set the maximum size of a window's client area.
DECLSPEC void SDLCALL SDL_SetWindowSize(SDL_Window *window, int w, int h)
Set the size of a window's client area.
Definition: SDL_video.h:110
DECLSPEC void SDLCALL SDL_EnableScreenSaver(void)
Allow the screen to be blanked by a screensaver.
Uint32 format
Definition: SDL_video.h:55
DECLSPEC void SDLCALL SDL_SetWindowGrab(SDL_Window *window, SDL_bool grabbed)
Set a window's input grab mode.
DECLSPEC int SDLCALL SDL_GetDesktopDisplayMode(int displayIndex, SDL_DisplayMode *mode)
Fill in information about the desktop display mode.
Definition: SDL_video.h:107
DECLSPEC void SDLCALL SDL_VideoQuit(void)
Shuts down the video subsystem.
DECLSPEC void SDLCALL SDL_MinimizeWindow(SDL_Window *window)
Minimize a window to an iconic representation.
int refresh_rate
Definition: SDL_video.h:58
DECLSPEC void SDLCALL SDL_SetWindowBordered(SDL_Window *window, SDL_bool bordered)
Set the border state of a window.
DECLSPEC void SDLCALL SDL_GL_UnloadLibrary(void)
Unload the OpenGL library previously loaded by SDL_GL_LoadLibrary().
DECLSPEC SDL_bool SDLCALL SDL_GL_ExtensionSupported(const char *extension)
Return true if an OpenGL extension is supported for the current context.
DECLSPEC Uint32 SDLCALL SDL_GetWindowID(SDL_Window *window)
Get the numeric ID of a window, for logging purposes.
Definition: SDL_video.h:150
Definition: SDL_video.h:101
Definition: SDL_video.h:145
DECLSPEC int SDLCALL SDL_SetWindowBrightness(SDL_Window *window, float brightness)
Set the brightness (gamma correction) for a window.
DECLSPEC const char *SDLCALL SDL_GetCurrentVideoDriver(void)
Returns the name of the currently initialized video driver.
DECLSPEC void SDLCALL SDL_HideWindow(SDL_Window *window)
Hide a window.
DECLSPEC int SDLCALL SDL_GetNumDisplayModes(int displayIndex)
Returns the number of available display modes.
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.
DECLSPEC const char *SDLCALL SDL_GetWindowTitle(SDL_Window *window)
Get the title of a window, in UTF-8 format.
DECLSPEC void *SDLCALL SDL_GetWindowData(SDL_Window *window, const char *name)
Retrieve the data pointer associated with a window.
DECLSPEC int SDLCALL SDL_GetCurrentDisplayMode(int displayIndex, SDL_DisplayMode *mode)
Fill in information about the current display mode.
Definition: SDL_video.h:99
Definition: SDL_video.h:153
void * SDL_GLContext
An opaque handle to an OpenGL context.
Definition: SDL_video.h:161
DECLSPEC int SDLCALL SDL_GL_SetSwapInterval(int interval)
Set the swap interval for the current OpenGL context.
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.
DECLSPEC void SDLCALL SDL_RaiseWindow(SDL_Window *window)
Raise a window above other windows and set the input focus.
Definition: SDL_video.h:100
DECLSPEC const char *SDLCALL SDL_GetVideoDriver(int index)
Get the name of a built in video driver.
DECLSPEC int SDLCALL SDL_GL_GetSwapInterval(void)
Get the swap interval for the current OpenGL context.