zenilib: zenilib/jni/external/sdl/src/video/SDL_sysvideo.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_sysvideo.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 #include "SDL_config.h"
22
23 #ifndef _SDL_sysvideo_h
24 #define _SDL_sysvideo_h
25
26 #include "SDL_messagebox.h"
27 #include "SDL_shape.h"
28 #include "SDL_thread.h"
29
30 /* The SDL video driver */
31
32 typedef struct SDL_WindowShaper SDL_WindowShaper;
33 typedef struct SDL_ShapeDriver SDL_ShapeDriver;
34 typedef struct SDL_VideoDisplay SDL_VideoDisplay;
35 typedef struct SDL_VideoDevice SDL_VideoDevice;
36
37 /* Define the SDL window-shaper structure */
38 struct SDL_WindowShaper
39 {
40 /* The window associated with the shaper */
41 SDL_Window *window;
42
43 /* The user's specified coordinates for the window, for once we give it a shape. */
44 Uint32 userx,usery;
45
46 /* The parameters for shape calculation. */
47 SDL_WindowShapeMode mode;
48
49 /* Has this window been assigned a shape? */
50 SDL_bool hasshape;
51
52 void *driverdata;
53 };
54
55 /* Define the SDL shape driver structure */
56 struct SDL_ShapeDriver
57 {
58 SDL_WindowShaper *(*CreateShaper)(SDL_Window * window);
59 int (*SetWindowShape)(SDL_WindowShaper *shaper,SDL_Surface *shape,SDL_WindowShapeMode *shape_mode);
60 int (*ResizeWindowShape)(SDL_Window *window);
61 };
62
63 typedef struct SDL_WindowUserData
64 {
65 char *name;
66 void *data;
67 struct SDL_WindowUserData *next;
68 } SDL_WindowUserData;
69
70 /* Define the SDL window structure, corresponding to toplevel windows */
71 struct SDL_Window
72 {
73 const void *magic;
74 Uint32 id;
75 char *title;
76 SDL_Surface *icon;
77 int x, y;
78 int w, h;
79 int min_w, min_h;
80 int max_w, max_h;
81 Uint32 flags;
82
83 /* Stored position and size for windowed mode */
84 SDL_Rect windowed;
85
86 SDL_DisplayMode fullscreen_mode;
87
88 float brightness;
89 Uint16 *gamma;
90 Uint16 *saved_gamma; /* (just offset into gamma) */
91
92 SDL_Surface *surface;
93 SDL_bool surface_valid;
94
95 SDL_WindowShaper *shaper;
96
97 SDL_WindowUserData *data;
98
99 void *driverdata;
100
101 SDL_Window *prev;
102 SDL_Window *next;
103 };
104 #define FULLSCREEN_VISIBLE(W) \
105 (((W)->flags & SDL_WINDOW_FULLSCREEN) && \
106 ((W)->flags & SDL_WINDOW_SHOWN) && \
107 !((W)->flags & SDL_WINDOW_MINIMIZED))
108
109 /*
110 * Define the SDL display structure This corresponds to physical monitors
111 * attached to the system.
112 */
113 struct SDL_VideoDisplay
114 {
115 char *name;
116 int max_display_modes;
117 int num_display_modes;
118 SDL_DisplayMode *display_modes;
119 SDL_DisplayMode desktop_mode;
120 SDL_DisplayMode current_mode;
121
122 SDL_Window *fullscreen_window;
123
124 SDL_VideoDevice *device;
125
126 void *driverdata;
127 };
128
129 /* Forward declaration */
130 struct SDL_SysWMinfo;
131
132 /* Define the SDL video driver structure */
133 #define _THIS SDL_VideoDevice *_this
134
135 struct SDL_VideoDevice
136 {
137 /* * * */
138 /* The name of this video driver */
139 const char *name;
140
141 /* * * */
142 /* Initialization/Query functions */
143
144 /*
145 * Initialize the native video subsystem, filling in the list of
146 * displays for this driver, returning 0 or -1 if there's an error.
147 */
148 int (*VideoInit) (_THIS);
149
150 /*
151 * Reverse the effects VideoInit() -- called if VideoInit() fails or
152 * if the application is shutting down the video subsystem.
153 */
154 void (*VideoQuit) (_THIS);
155
156 /* * * */
157 /*
158 * Display functions
159 */
160
161 /*
162 * Get the bounds of a display
163 */
164 int (*GetDisplayBounds) (_THIS, SDL_VideoDisplay * display, SDL_Rect * rect);
165
166 /*
167 * Get a list of the available display modes for a display.
168 */
169 void (*GetDisplayModes) (_THIS, SDL_VideoDisplay * display);
170
171 /*
172 * Setting the display mode is independent of creating windows, so
173 * when the display mode is changed, all existing windows should have
174 * their data updated accordingly, including the display surfaces
175 * associated with them.
176 */
177 int (*SetDisplayMode) (_THIS, SDL_VideoDisplay * display, SDL_DisplayMode * mode);
178
179 /* * * */
180 /*
181 * Window functions
182 */
183 int (*CreateWindow) (_THIS, SDL_Window * window);
184 int (*CreateWindowFrom) (_THIS, SDL_Window * window, const void *data);
185 void (*SetWindowTitle) (_THIS, SDL_Window * window);
186 void (*SetWindowIcon) (_THIS, SDL_Window * window, SDL_Surface * icon);
187 void (*SetWindowPosition) (_THIS, SDL_Window * window);
188 void (*SetWindowSize) (_THIS, SDL_Window * window);
189 void (*SetWindowMinimumSize) (_THIS, SDL_Window * window);
190 void (*SetWindowMaximumSize) (_THIS, SDL_Window * window);
191 void (*ShowWindow) (_THIS, SDL_Window * window);
192 void (*HideWindow) (_THIS, SDL_Window * window);
193 void (*RaiseWindow) (_THIS, SDL_Window * window);
194 void (*MaximizeWindow) (_THIS, SDL_Window * window);
195 void (*MinimizeWindow) (_THIS, SDL_Window * window);
196 void (*RestoreWindow) (_THIS, SDL_Window * window);
197 void (*SetWindowBordered) (_THIS, SDL_Window * window, SDL_bool bordered);
198 void (*SetWindowFullscreen) (_THIS, SDL_Window * window, SDL_VideoDisplay * display, SDL_bool fullscreen);
199 int (*SetWindowGammaRamp) (_THIS, SDL_Window * window, const Uint16 * ramp);
200 int (*GetWindowGammaRamp) (_THIS, SDL_Window * window, Uint16 * ramp);
201 void (*SetWindowGrab) (_THIS, SDL_Window * window, SDL_bool grabbed);
202 void (*DestroyWindow) (_THIS, SDL_Window * window);
203 int (*CreateWindowFramebuffer) (_THIS, SDL_Window * window, Uint32 * format, void ** pixels, int *pitch);
204 int (*UpdateWindowFramebuffer) (_THIS, SDL_Window * window, const SDL_Rect * rects, int numrects);
205 void (*DestroyWindowFramebuffer) (_THIS, SDL_Window * window);
206 void (*OnWindowEnter) (_THIS, SDL_Window * window);
207
208 /* * * */
209 /*
210 * Shaped-window functions
211 */
212 SDL_ShapeDriver shape_driver;
213
214 /* Get some platform dependent window information */
215 SDL_bool(*GetWindowWMInfo) (_THIS, SDL_Window * window,
216 struct SDL_SysWMinfo * info);
217
218 /* * * */
219 /*
220 * OpenGL support
221 */
222 int (*GL_LoadLibrary) (_THIS, const char *path);
223 void *(*GL_GetProcAddress) (_THIS, const char *proc);
224 void (*GL_UnloadLibrary) (_THIS);
225 SDL_GLContext(*GL_CreateContext) (_THIS, SDL_Window * window);
226 int (*GL_MakeCurrent) (_THIS, SDL_Window * window, SDL_GLContext context);
227 void (*GL_GetDrawableSize) (_THIS, SDL_Window * window, int *w, int *h);
228 int (*GL_SetSwapInterval) (_THIS, int interval);
229 int (*GL_GetSwapInterval) (_THIS);
230 void (*GL_SwapWindow) (_THIS, SDL_Window * window);
231 void (*GL_DeleteContext) (_THIS, SDL_GLContext context);
232
233 /* * * */
234 /*
235 * Event manager functions
236 */
237 void (*PumpEvents) (_THIS);
238
239 /* Suspend the screensaver */
240 void (*SuspendScreenSaver) (_THIS);
241
242 /* Text input */
243 void (*StartTextInput) (_THIS);
244 void (*StopTextInput) (_THIS);
245 void (*SetTextInputRect) (_THIS, SDL_Rect *rect);
246
247 /* Screen keyboard */
248 SDL_bool (*HasScreenKeyboardSupport) (_THIS);
249 void (*ShowScreenKeyboard) (_THIS, SDL_Window *window);
250 void (*HideScreenKeyboard) (_THIS, SDL_Window *window);
251 SDL_bool (*IsScreenKeyboardShown) (_THIS, SDL_Window *window);
252
253 /* Clipboard */
254 int (*SetClipboardText) (_THIS, const char *text);
255 char * (*GetClipboardText) (_THIS);
256 SDL_bool (*HasClipboardText) (_THIS);
257
258 /* MessageBox */
259 int (*ShowMessageBox) (_THIS, const SDL_MessageBoxData *messageboxdata, int *buttonid);
260
261 /* * * */
262 /* Data common to all drivers */
263 SDL_bool suspend_screensaver;
264 int num_displays;
265 SDL_VideoDisplay *displays;
266 SDL_Window *windows;
267 Uint8 window_magic;
268 Uint32 next_object_id;
269 char * clipboard_text;
270
271 /* * * */
272 /* Data used by the GL drivers */
273 struct
274 {
275 int red_size;
276 int green_size;
277 int blue_size;
278 int alpha_size;
279 int depth_size;
280 int buffer_size;
281 int stencil_size;
282 int double_buffer;
283 int accum_red_size;
284 int accum_green_size;
285 int accum_blue_size;
286 int accum_alpha_size;
287 int stereo;
288 int multisamplebuffers;
289 int multisamplesamples;
290 int accelerated;
291 int major_version;
292 int minor_version;
293 int flags;
294 int profile_mask;
295 int share_with_current_context;
296 int retained_backing;
297 int driver_loaded;
298 char driver_path[256];
299 void *dll_handle;
300 } gl_config;
301
302 /* * * */
303 /* Cache current GL context; don't call the OS when it hasn't changed. */
304 /* We have the global pointers here so Cocoa continues to work the way
305 it always has, and the thread-local storage for the general case.
306 */
307 SDL_Window *current_glwin;
308 SDL_GLContext current_glctx;
309 SDL_TLSID current_glwin_tls;
310 SDL_TLSID current_glctx_tls;
311
312 /* * * */
313 /* Data private to this driver */
314 void *driverdata;
315 struct SDL_GLDriverData *gl_data;
316
317 #if SDL_VIDEO_OPENGL_EGL
318 struct SDL_EGL_VideoData *egl_data;
319 #endif
320
321 #if SDL_VIDEO_OPENGL_ES || SDL_VIDEO_OPENGL_ES2
322 struct SDL_PrivateGLESData *gles_data;
323 #endif
324
325 /* * * */
326 /* The function used to dispose of this structure */
327 void (*free) (_THIS);
328 };
329
330 typedef struct VideoBootStrap
331 {
332 const char *name;
333 const char *desc;
334 int (*available) (void);
335 SDL_VideoDevice *(*create) (int devindex);
336 } VideoBootStrap;
337
338 #if SDL_VIDEO_DRIVER_COCOA
339 extern VideoBootStrap COCOA_bootstrap;
340 #endif
341 #if SDL_VIDEO_DRIVER_X11
342 extern VideoBootStrap X11_bootstrap;
343 #endif
344 #if SDL_VIDEO_DRIVER_DIRECTFB
345 extern VideoBootStrap DirectFB_bootstrap;
346 #endif
347 #if SDL_VIDEO_DRIVER_WINDOWS
348 extern VideoBootStrap WINDOWS_bootstrap;
349 #endif
350 #if SDL_VIDEO_DRIVER_BWINDOW
351 extern VideoBootStrap BWINDOW_bootstrap;
352 #endif
353 #if SDL_VIDEO_DRIVER_PANDORA
354 extern VideoBootStrap PND_bootstrap;
355 #endif
356 #if SDL_VIDEO_DRIVER_UIKIT
357 extern VideoBootStrap UIKIT_bootstrap;
358 #endif
359 #if SDL_VIDEO_DRIVER_ANDROID
360 extern VideoBootStrap Android_bootstrap;
361 #endif
362 #if SDL_VIDEO_DRIVER_PSP
363 extern VideoBootStrap PSP_bootstrap;
364 #endif
365 #if SDL_VIDEO_DRIVER_RPI
366 extern VideoBootStrap RPI_bootstrap;
367 #endif
368 #if SDL_VIDEO_DRIVER_DUMMY
369 extern VideoBootStrap DUMMY_bootstrap;
370 #endif
371
372 extern SDL_VideoDevice *SDL_GetVideoDevice(void);
373 extern int SDL_AddBasicVideoDisplay(const SDL_DisplayMode * desktop_mode);
374 extern int SDL_AddVideoDisplay(const SDL_VideoDisplay * display);
375 extern SDL_bool SDL_AddDisplayMode(SDL_VideoDisplay *display, const SDL_DisplayMode * mode);
376 extern SDL_VideoDisplay *SDL_GetDisplayForWindow(SDL_Window *window);
377 extern void *SDL_GetDisplayDriverData( int displayIndex );
378
379 extern int SDL_RecreateWindow(SDL_Window * window, Uint32 flags);
380
381 extern void SDL_OnWindowShown(SDL_Window * window);
382 extern void SDL_OnWindowHidden(SDL_Window * window);
383 extern void SDL_OnWindowResized(SDL_Window * window);
384 extern void SDL_OnWindowMinimized(SDL_Window * window);
385 extern void SDL_OnWindowRestored(SDL_Window * window);
386 extern void SDL_OnWindowEnter(SDL_Window * window);
387 extern void SDL_OnWindowLeave(SDL_Window * window);
388 extern void SDL_OnWindowFocusGained(SDL_Window * window);
389 extern void SDL_OnWindowFocusLost(SDL_Window * window);
390 extern void SDL_UpdateWindowGrab(SDL_Window * window);
391 extern SDL_Window * SDL_GetFocusWindow(void);
392
393 extern SDL_bool SDL_ShouldAllowTopmost(void);
394
395 #endif /* _SDL_sysvideo_h */
396
397 /* vi: set ts=4 sw=4 expandtab: */
SDL_VideoDevice::SetWindowMaximumSize
void(* SetWindowMaximumSize)(_THIS, SDL_Window *window)
Definition: SDL_sysvideo.h:190
SDL_VideoDevice::GetDisplayModes
void(* GetDisplayModes)(_THIS, SDL_VideoDisplay *display)
Definition: SDL_sysvideo.h:169
SDL_Window::next
SDL_Window * next
Definition: SDL_sysvideo.h:102
SDL_WindowUserData
Definition: SDL_sysvideo.h:63
SDL_VideoDevice::name
const char * name
Definition: SDL_sysvideo.h:139
SDL_VideoDevice::MinimizeWindow
void(* MinimizeWindow)(_THIS, SDL_Window *window)
Definition: SDL_sysvideo.h:195
SDL_VideoDevice::accum_alpha_size
int accum_alpha_size
Definition: SDL_sysvideo.h:286
SDL_UpdateWindowGrab
void SDL_UpdateWindowGrab(SDL_Window *window)
Definition: SDL_video.c:2006
SDL_VideoDevice::UpdateWindowFramebuffer
int(* UpdateWindowFramebuffer)(_THIS, SDL_Window *window, const SDL_Rect *rects, int numrects)
Definition: SDL_sysvideo.h:204
SDL_VideoDevice::GetWindowWMInfo
SDL_bool(* GetWindowWMInfo)(_THIS, SDL_Window *window, struct SDL_SysWMinfo *info)
Definition: SDL_sysvideo.h:215
SDL_VideoDevice::accum_blue_size
int accum_blue_size
Definition: SDL_sysvideo.h:285
SDL_VideoDevice::IsScreenKeyboardShown
SDL_bool(* IsScreenKeyboardShown)(_THIS, SDL_Window *window)
Definition: SDL_sysvideo.h:251
SDL_VideoDevice::RaiseWindow
void(* RaiseWindow)(_THIS, SDL_Window *window)
Definition: SDL_sysvideo.h:193
SDL_VideoDevice::SetClipboardText
int(* SetClipboardText)(_THIS, const char *text)
Definition: SDL_sysvideo.h:254
h
GLfloat GLfloat GLfloat GLfloat h
Definition: glew.h:7294
SDL_Window::fullscreen_mode
SDL_DisplayMode fullscreen_mode
Definition: SDL_sysvideo.h:86
void
GLvoid **typedef void(GLAPIENTRY *PFNGLGETVERTEXATTRIBDVPROC)(GLuint
Definition: glew.h:1824
SDL_VideoDevice::buffer_size
int buffer_size
Definition: SDL_sysvideo.h:280
SDL_Window::w
int w
Definition: SDL_sysvideo.h:78
SDL_VideoDevice::minor_version
int minor_version
Definition: SDL_sysvideo.h:292
SDL_VideoDevice::HideWindow
void(* HideWindow)(_THIS, SDL_Window *window)
Definition: SDL_sysvideo.h:192
_THIS
#define _THIS
Definition: SDL_sysvideo.h:133
SDL_VideoDevice::GL_MakeCurrent
int(* GL_MakeCurrent)(_THIS, SDL_Window *window, SDL_GLContext context)
Definition: SDL_sysvideo.h:226
SDL_VideoDevice::blue_size
int blue_size
Definition: SDL_sysvideo.h:277
SDL_VideoDevice::accum_red_size
int accum_red_size
Definition: SDL_sysvideo.h:283
SDL_VideoDevice::GetWindowGammaRamp
int(* GetWindowGammaRamp)(_THIS, SDL_Window *window, Uint16 *ramp)
Definition: SDL_sysvideo.h:200
VideoBootStrap::desc
const char * desc
Definition: SDL_sysvideo.h:333
SDL_WindowUserData::data
void * data
Definition: SDL_sysvideo.h:66
SDL_Window::x
int x
Definition: SDL_sysvideo.h:77
SDL_Window::magic
const void * magic
Definition: SDL_sysvideo.h:73
SDL_bool
SDL_bool
Definition: SDL_stdinc.h:116
SDL_VideoDevice::current_glwin_tls
SDL_TLSID current_glwin_tls
Definition: SDL_sysvideo.h:309
SDL_VideoDevice::StopTextInput
void(* StopTextInput)(_THIS)
Definition: SDL_sysvideo.h:244
SDL_VideoDevice::GetDisplayBounds
int(* GetDisplayBounds)(_THIS, SDL_VideoDisplay *display, SDL_Rect *rect)
Definition: SDL_sysvideo.h:164
SDL_WindowShaper::hasshape
SDL_bool hasshape
Definition: SDL_sysvideo.h:50
SDL_VideoDisplay::name
char * name
Definition: SDL_sysvideo.h:115
SDL_AddBasicVideoDisplay
int SDL_AddBasicVideoDisplay(const SDL_DisplayMode *desktop_mode)
Definition: SDL_video.c:554
SDL_Surface
A collection of pixels used in software blitting.
Definition: SDL_surface.h:69
SDL_OnWindowResized
void SDL_OnWindowResized(SDL_Window *window)
Definition: SDL_video.c:2057
SDL_VideoDevice::driverdata
void * driverdata
Definition: SDL_sysvideo.h:314
SDL_WindowShaper::driverdata
void * driverdata
Definition: SDL_sysvideo.h:52
SDL_messagebox.h
SDL_VideoDevice::SetWindowGrab
void(* SetWindowGrab)(_THIS, SDL_Window *window, SDL_bool grabbed)
Definition: SDL_sysvideo.h:201
SDL_DisplayMode
The structure that defines a display mode.
Definition: SDL_video.h:53
SDL_VideoDevice::retained_backing
int retained_backing
Definition: SDL_sysvideo.h:296
SDL_VideoDevice::SetWindowIcon
void(* SetWindowIcon)(_THIS, SDL_Window *window, SDL_Surface *icon)
Definition: SDL_sysvideo.h:186
SDL_VideoDevice::profile_mask
int profile_mask
Definition: SDL_sysvideo.h:294
SDL_GLContext
void * SDL_GLContext
An opaque handle to an OpenGL context.
Definition: SDL_video.h:161
SDL_VideoDevice::HasScreenKeyboardSupport
SDL_bool(* HasScreenKeyboardSupport)(_THIS)
Definition: SDL_sysvideo.h:248
VideoBootStrap
struct VideoBootStrap VideoBootStrap
SDL_Window::saved_gamma
Uint16 * saved_gamma
Definition: SDL_sysvideo.h:90
display
char * display
Definition: visualinfo.c:85
SDL_OnWindowEnter
void SDL_OnWindowEnter(SDL_Window *window)
Definition: SDL_video.c:2080
SDL_VideoDevice::CreateWindowFrom
int(* CreateWindowFrom)(_THIS, SDL_Window *window, const void *data)
Definition: SDL_sysvideo.h:184
SDL_WindowShaper
Definition: SDL_sysvideo.h:38
SDL_Window::windowed
SDL_Rect windowed
Definition: SDL_sysvideo.h:84
path
GLsizei const GLchar *const * path
Definition: glew.h:5828
SDL_VideoDevice::HideScreenKeyboard
void(* HideScreenKeyboard)(_THIS, SDL_Window *window)
Definition: SDL_sysvideo.h:250
SDL_config.h
SDL_AddVideoDisplay
int SDL_AddVideoDisplay(const SDL_VideoDisplay *display)
Definition: SDL_video.c:568
SDL_VideoDevice::free
void(* free)(_THIS)
Definition: SDL_sysvideo.h:327
SDL_ShapeDriver
Definition: SDL_sysvideo.h:56
SDL_VideoDevice::stereo
int stereo
Definition: SDL_sysvideo.h:287
SDL_VideoDevice::gl_data
struct SDL_GLDriverData * gl_data
Definition: SDL_sysvideo.h:315
SDL_GetDisplayDriverData
void * SDL_GetDisplayDriverData(int displayIndex)
Definition: SDL_video.c:622
SDL_OnWindowHidden
void SDL_OnWindowHidden(SDL_Window *window)
Definition: SDL_video.c:2051
SDL_VideoDevice::GL_SetSwapInterval
int(* GL_SetSwapInterval)(_THIS, int interval)
Definition: SDL_sysvideo.h:228
Uint32
uint32_t Uint32
An unsigned 32-bit integer type.
Definition: SDL_stdinc.h:145
SDL_VideoDevice::DestroyWindowFramebuffer
void(* DestroyWindowFramebuffer)(_THIS, SDL_Window *window)
Definition: SDL_sysvideo.h:205
SDL_VideoDevice::accelerated
int accelerated
Definition: SDL_sysvideo.h:290
SDL_VideoDevice::CreateWindow
int(* CreateWindow)(_THIS, SDL_Window *window)
Definition: SDL_sysvideo.h:183
SDL_VideoDevice::multisamplebuffers
int multisamplebuffers
Definition: SDL_sysvideo.h:288
SDL_VideoDisplay::num_display_modes
int num_display_modes
Definition: SDL_sysvideo.h:117
SDL_VideoDevice::GL_UnloadLibrary
void(* GL_UnloadLibrary)(_THIS)
Definition: SDL_sysvideo.h:224
SDL_WindowUserData::next
struct SDL_WindowUserData * next
Definition: SDL_sysvideo.h:67
SDL_VideoDevice::multisamplesamples
int multisamplesamples
Definition: SDL_sysvideo.h:289
SDL_OnWindowMinimized
void SDL_OnWindowMinimized(SDL_Window *window)
Definition: SDL_video.c:2064
SDL_VideoDevice::GL_GetDrawableSize
void(* GL_GetDrawableSize)(_THIS, SDL_Window *window, int *w, int *h)
Definition: SDL_sysvideo.h:227
SDL_VideoDevice::major_version
int major_version
Definition: SDL_sysvideo.h:291
SDL_VideoDisplay::device
SDL_VideoDevice * device
Definition: SDL_sysvideo.h:124
SDL_shape.h
SDL_WindowShaper::mode
SDL_WindowShapeMode mode
Definition: SDL_sysvideo.h:47
SDL_VideoDevice::current_glctx
SDL_GLContext current_glctx
Definition: SDL_sysvideo.h:308
int
int
Definition: SDL_systhread.c:37
SDL_SysWMinfo
Definition: SDL_syswm.h:159
SDL_VideoDevice::ShowMessageBox
int(* ShowMessageBox)(_THIS, const SDL_MessageBoxData *messageboxdata, int *buttonid)
Definition: SDL_sysvideo.h:259
data
GLint GLenum GLsizei GLsizei GLsizei GLint GLsizei const GLvoid * data
Definition: gl2ext.h:848
SDL_RecreateWindow
int SDL_RecreateWindow(SDL_Window *window, Uint32 flags)
Definition: SDL_video.c:1317
SDL_ShapeDriver::SetWindowShape
int(* SetWindowShape)(SDL_WindowShaper *shaper, SDL_Surface *shape, SDL_WindowShapeMode *shape_mode)
Definition: SDL_sysvideo.h:59
SDL_VideoDevice::VideoInit
int(* VideoInit)(_THIS)
Definition: SDL_sysvideo.h:148
SDL_VideoDevice::depth_size
int depth_size
Definition: SDL_sysvideo.h:279
SDL_Window::shaper
SDL_WindowShaper * shaper
Definition: SDL_sysvideo.h:95
SDL_VideoDevice::red_size
int red_size
Definition: SDL_sysvideo.h:275
SDL_VideoDevice::double_buffer
int double_buffer
Definition: SDL_sysvideo.h:282
SDL_WindowShaper::window
SDL_Window * window
Definition: SDL_sysvideo.h:41
SDL_WindowUserData::name
char * name
Definition: SDL_sysvideo.h:65
SDL_GetFocusWindow
SDL_Window * SDL_GetFocusWindow(void)
Definition: SDL_video.c:2138
SDL_VideoDevice::driver_loaded
int driver_loaded
Definition: SDL_sysvideo.h:297
VideoBootStrap
Definition: SDL_sysvideo.h:330
SDL_Window::min_w
int min_w
Definition: SDL_sysvideo.h:79
SDL_VideoDevice::num_displays
int num_displays
Definition: SDL_sysvideo.h:264
SDL_VideoDevice::driver_path
char driver_path[256]
Definition: SDL_sysvideo.h:298
SDL_VideoDevice::SetWindowGammaRamp
int(* SetWindowGammaRamp)(_THIS, SDL_Window *window, const Uint16 *ramp)
Definition: SDL_sysvideo.h:199
SDL_VideoDisplay::display_modes
SDL_DisplayMode * display_modes
Definition: SDL_sysvideo.h:118
SDL_VideoDevice::dll_handle
void * dll_handle
Definition: SDL_sysvideo.h:299
SDL_VideoDisplay::current_mode
SDL_DisplayMode current_mode
Definition: SDL_sysvideo.h:120
SDL_VideoDevice::displays
SDL_VideoDisplay * displays
Definition: SDL_sysvideo.h:265
SDL_VideoDevice::green_size
int green_size
Definition: SDL_sysvideo.h:276
SDL_OnWindowLeave
void SDL_OnWindowLeave(SDL_Window *window)
Definition: SDL_video.c:2088
format
GLint GLenum GLsizei GLsizei GLsizei GLint GLenum format
Definition: gl2ext.h:845
SDL_Window::title
char * title
Definition: SDL_sysvideo.h:75
SDL_VideoDevice::alpha_size
int alpha_size
Definition: SDL_sysvideo.h:278
SDL_Window::y
int y
Definition: SDL_sysvideo.h:77
SDL_VideoDevice::SetWindowPosition
void(* SetWindowPosition)(_THIS, SDL_Window *window)
Definition: SDL_sysvideo.h:187
SDL_VideoDevice::windows
SDL_Window * windows
Definition: SDL_sysvideo.h:266
SDL_WindowShaper::userx
Uint32 userx
Definition: SDL_sysvideo.h:44
SDL_WindowShaper::usery
Uint32 usery
Definition: SDL_sysvideo.h:44
SDL_VideoDevice::PumpEvents
void(* PumpEvents)(_THIS)
Definition: SDL_sysvideo.h:237
SDL_SysWMinfo::info
union SDL_SysWMinfo::@78 info
SDL_MessageBoxData
MessageBox structure containing title, text, window, etc.
Definition: SDL_messagebox.h:92
SDL_VideoDevice::window_magic
Uint8 window_magic
Definition: SDL_sysvideo.h:267
SDL_Window::brightness
float brightness
Definition: SDL_sysvideo.h:88
SDL_VideoDisplay::fullscreen_window
SDL_Window * fullscreen_window
Definition: SDL_sysvideo.h:122
SDL_VideoDisplay
Definition: SDL_sysvideo.h:113
SDL_Window::h
int h
Definition: SDL_sysvideo.h:78
SDL_VideoDevice::SetWindowMinimumSize
void(* SetWindowMinimumSize)(_THIS, SDL_Window *window)
Definition: SDL_sysvideo.h:189
SDL_VideoDevice::stencil_size
int stencil_size
Definition: SDL_sysvideo.h:281
SDL_VideoDevice::share_with_current_context
int share_with_current_context
Definition: SDL_sysvideo.h:295
SDL_VideoDevice::SuspendScreenSaver
void(* SuspendScreenSaver)(_THIS)
Definition: SDL_sysvideo.h:240
SDL_VideoDevice::GL_GetSwapInterval
int(* GL_GetSwapInterval)(_THIS)
Definition: SDL_sysvideo.h:229
SDL_ShouldAllowTopmost
SDL_bool SDL_ShouldAllowTopmost(void)
Definition: SDL_video.c:3207
SDL_VideoDisplay::desktop_mode
SDL_DisplayMode desktop_mode
Definition: SDL_sysvideo.h:119
SDL_VideoDevice::GL_DeleteContext
void(* GL_DeleteContext)(_THIS, SDL_GLContext context)
Definition: SDL_sysvideo.h:231
SDL_VideoDevice::MaximizeWindow
void(* MaximizeWindow)(_THIS, SDL_Window *window)
Definition: SDL_sysvideo.h:194
SDL_VideoDevice::flags
int flags
Definition: SDL_sysvideo.h:293
pixels
GLint GLenum GLsizei GLsizei GLsizei GLint GLenum GLenum const GLvoid * pixels
Definition: gl2ext.h:845
SDL_Window::min_h
int min_h
Definition: SDL_sysvideo.h:79
SDL_VideoDevice::DestroyWindow
void(* DestroyWindow)(_THIS, SDL_Window *window)
Definition: SDL_sysvideo.h:202
SDL_GLDriverData
Definition: SDL_pspgl_c.h:32
SDL_VideoDevice::SetTextInputRect
void(* SetTextInputRect)(_THIS, SDL_Rect *rect)
Definition: SDL_sysvideo.h:245
SDL_VideoDevice::SetWindowSize
void(* SetWindowSize)(_THIS, SDL_Window *window)
Definition: SDL_sysvideo.h:188
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_VideoDevice::SetDisplayMode
int(* SetDisplayMode)(_THIS, SDL_VideoDisplay *display, SDL_DisplayMode *mode)
Definition: SDL_sysvideo.h:177
SDL_GetDisplayForWindow
SDL_VideoDisplay * SDL_GetDisplayForWindow(SDL_Window *window)
Definition: SDL_video.c:996
VideoBootStrap::available
int(* available)(void)
Definition: SDL_sysvideo.h:334
SDL_Window::prev
SDL_Window * prev
Definition: SDL_sysvideo.h:101
Uint8
uint8_t Uint8
An unsigned 8-bit integer type.
Definition: SDL_stdinc.h:129
SDL_VideoDevice::current_glctx_tls
SDL_TLSID current_glctx_tls
Definition: SDL_sysvideo.h:310
SDL_Window
Definition: SDL_sysvideo.h:71
SDL_VideoDevice::GL_CreateContext
SDL_GLContext(* GL_CreateContext)(_THIS, SDL_Window *window)
Definition: SDL_sysvideo.h:225
SDL_Window::id
Uint32 id
Definition: SDL_sysvideo.h:74
SDL_VideoDevice::GL_LoadLibrary
int(* GL_LoadLibrary)(_THIS, const char *path)
Definition: SDL_sysvideo.h:222
SDL_OnWindowFocusLost
void SDL_OnWindowFocusLost(SDL_Window *window)
Definition: SDL_video.c:2123
SDL_VideoDevice::GL_SwapWindow
void(* GL_SwapWindow)(_THIS, SDL_Window *window)
Definition: SDL_sysvideo.h:230
VideoBootStrap::name
const char * name
Definition: SDL_sysvideo.h:332
SDL_VideoDevice
Definition: SDL_sysvideo.h:135
SDL_VideoDevice::VideoQuit
void(* VideoQuit)(_THIS)
Definition: SDL_sysvideo.h:154
SDL_VideoDevice::ShowWindow
void(* ShowWindow)(_THIS, SDL_Window *window)
Definition: SDL_sysvideo.h:191
SDL_AddDisplayMode
SDL_bool SDL_AddDisplayMode(SDL_VideoDisplay *display, const SDL_DisplayMode *mode)
Definition: SDL_video.c:666
SDL_GetVideoDevice
SDL_VideoDevice * SDL_GetVideoDevice(void)
Definition: SDL_video.c:548
SDL_VideoDevice::shape_driver
SDL_ShapeDriver shape_driver
Definition: SDL_sysvideo.h:212
SDL_VideoDevice::CreateWindowFramebuffer
int(* CreateWindowFramebuffer)(_THIS, SDL_Window *window, Uint32 *format, void **pixels, int *pitch)
Definition: SDL_sysvideo.h:203
SDL_Window::max_h
int max_h
Definition: SDL_sysvideo.h:80
SDL_VideoDevice::suspend_screensaver
SDL_bool suspend_screensaver
Definition: SDL_sysvideo.h:263
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_VideoDevice::HasClipboardText
SDL_bool(* HasClipboardText)(_THIS)
Definition: SDL_sysvideo.h:256
SDL_OnWindowRestored
void SDL_OnWindowRestored(SDL_Window *window)
Definition: SDL_video.c:2070
SDL_OnWindowShown
void SDL_OnWindowShown(SDL_Window *window)
Definition: SDL_video.c:2045
SDL_WindowShapeMode
A struct that tags the SDL_WindowShapeParams union with an enum describing the type of its contents...
Definition: SDL_shape.h:100
SDL_Window::gamma
Uint16 * gamma
Definition: SDL_sysvideo.h:89
SDL_VideoDevice::accum_green_size
int accum_green_size
Definition: SDL_sysvideo.h:284
SDL_Window::driverdata
void * driverdata
Definition: SDL_sysvideo.h:99
SDL_VideoDevice::SetWindowTitle
void(* SetWindowTitle)(_THIS, SDL_Window *window)
Definition: SDL_sysvideo.h:185
SDL_VideoDevice::SetWindowBordered
void(* SetWindowBordered)(_THIS, SDL_Window *window, SDL_bool bordered)
Definition: SDL_sysvideo.h:197
context
TParseContext * context
Definition: glslang_tab.cpp:1907
SDL_VideoDevice::StartTextInput
void(* StartTextInput)(_THIS)
Definition: SDL_sysvideo.h:243
SDL_VideoDevice::SetWindowFullscreen
void(* SetWindowFullscreen)(_THIS, SDL_Window *window, SDL_VideoDisplay *display, SDL_bool fullscreen)
Definition: SDL_sysvideo.h:198
SDL_VideoDevice::OnWindowEnter
void(* OnWindowEnter)(_THIS, SDL_Window *window)
Definition: SDL_sysvideo.h:206
SDL_Window::surface_valid
SDL_bool surface_valid
Definition: SDL_sysvideo.h:93
SDL_Window::flags
Uint32 flags
Definition: SDL_sysvideo.h:81
SDL_VideoDevice::next_object_id
Uint32 next_object_id
Definition: SDL_sysvideo.h:268
SDL_Window::surface
SDL_Surface * surface
Definition: SDL_sysvideo.h:92
SDL_VideoDevice::gl_config
struct SDL_VideoDevice::@87 gl_config
SDL_VideoDevice::current_glwin
SDL_Window * current_glwin
Definition: SDL_sysvideo.h:307
SDL_WindowUserData
struct SDL_WindowUserData SDL_WindowUserData
mode
GLenum mode
Definition: glew.h:2394
SDL_Window::data
SDL_WindowUserData * data
Definition: SDL_sysvideo.h:97
SDL_ShapeDriver::ResizeWindowShape
int(* ResizeWindowShape)(SDL_Window *window)
Definition: SDL_sysvideo.h:60
SDL_Rect
A rectangle, with the origin at the upper left.
Definition: SDL_rect.h:63
SDL_VideoDevice::ShowScreenKeyboard
void(* ShowScreenKeyboard)(_THIS, SDL_Window *window)
Definition: SDL_sysvideo.h:249
SDL_VideoDevice::RestoreWindow
void(* RestoreWindow)(_THIS, SDL_Window *window)
Definition: SDL_sysvideo.h:196
SDL_VideoDisplay::driverdata
void * driverdata
Definition: SDL_sysvideo.h:126
SDL_VideoDevice::clipboard_text
char * clipboard_text
Definition: SDL_sysvideo.h:269
SDL_TLSID
unsigned int SDL_TLSID
Definition: SDL_thread.h:52
SDL_OnWindowFocusGained
void SDL_OnWindowFocusGained(SDL_Window *window)
Definition: SDL_video.c:2093
SDL_VideoDisplay::max_display_modes
int max_display_modes
Definition: SDL_sysvideo.h:116