23 #ifndef _SDL_sysvideo_h
24 #define _SDL_sysvideo_h
28 #include "SDL_thread.h"
104 #define FULLSCREEN_VISIBLE(W) \
105 (((W)->flags & SDL_WINDOW_FULLSCREEN) && \
106 ((W)->flags & SDL_WINDOW_SHOWN) && \
107 !((W)->flags & SDL_WINDOW_MINIMIZED))
133 #define _THIS SDL_VideoDevice *_this
223 void *(*GL_GetProcAddress) (
_THIS,
const char *proc);
317 #if SDL_VIDEO_OPENGL_EGL
318 struct SDL_EGL_VideoData *egl_data;
321 #if SDL_VIDEO_OPENGL_ES || SDL_VIDEO_OPENGL_ES2
322 struct SDL_PrivateGLESData *gles_data;
338 #if SDL_VIDEO_DRIVER_COCOA
341 #if SDL_VIDEO_DRIVER_X11
344 #if SDL_VIDEO_DRIVER_DIRECTFB
347 #if SDL_VIDEO_DRIVER_WINDOWS
350 #if SDL_VIDEO_DRIVER_BWINDOW
353 #if SDL_VIDEO_DRIVER_PANDORA
356 #if SDL_VIDEO_DRIVER_UIKIT
359 #if SDL_VIDEO_DRIVER_ANDROID
362 #if SDL_VIDEO_DRIVER_PSP
365 #if SDL_VIDEO_DRIVER_RPI
368 #if SDL_VIDEO_DRIVER_DUMMY
void(* SetWindowMaximumSize)(_THIS, SDL_Window *window)
void(* GetDisplayModes)(_THIS, SDL_VideoDisplay *display)
void(* MinimizeWindow)(_THIS, SDL_Window *window)
void SDL_UpdateWindowGrab(SDL_Window *window)
int(* UpdateWindowFramebuffer)(_THIS, SDL_Window *window, const SDL_Rect *rects, int numrects)
SDL_bool(* GetWindowWMInfo)(_THIS, SDL_Window *window, struct SDL_SysWMinfo *info)
SDL_bool(* IsScreenKeyboardShown)(_THIS, SDL_Window *window)
void(* RaiseWindow)(_THIS, SDL_Window *window)
int(* SetClipboardText)(_THIS, const char *text)
GLfloat GLfloat GLfloat GLfloat h
SDL_DisplayMode fullscreen_mode
GLvoid **typedef void(GLAPIENTRY *PFNGLGETVERTEXATTRIBDVPROC)(GLuint
void(* HideWindow)(_THIS, SDL_Window *window)
int(* GL_MakeCurrent)(_THIS, SDL_Window *window, SDL_GLContext context)
int(* GetWindowGammaRamp)(_THIS, SDL_Window *window, Uint16 *ramp)
SDL_TLSID current_glwin_tls
void(* StopTextInput)(_THIS)
int(* GetDisplayBounds)(_THIS, SDL_VideoDisplay *display, SDL_Rect *rect)
int SDL_AddBasicVideoDisplay(const SDL_DisplayMode *desktop_mode)
A collection of pixels used in software blitting.
void SDL_OnWindowResized(SDL_Window *window)
void(* SetWindowGrab)(_THIS, SDL_Window *window, SDL_bool grabbed)
The structure that defines a display mode.
void(* SetWindowIcon)(_THIS, SDL_Window *window, SDL_Surface *icon)
void * SDL_GLContext
An opaque handle to an OpenGL context.
SDL_bool(* HasScreenKeyboardSupport)(_THIS)
struct VideoBootStrap VideoBootStrap
void SDL_OnWindowEnter(SDL_Window *window)
int(* CreateWindowFrom)(_THIS, SDL_Window *window, const void *data)
GLsizei const GLchar *const * path
void(* HideScreenKeyboard)(_THIS, SDL_Window *window)
int SDL_AddVideoDisplay(const SDL_VideoDisplay *display)
struct SDL_GLDriverData * gl_data
void * SDL_GetDisplayDriverData(int displayIndex)
void SDL_OnWindowHidden(SDL_Window *window)
int(* GL_SetSwapInterval)(_THIS, int interval)
uint32_t Uint32
An unsigned 32-bit integer type.
void(* DestroyWindowFramebuffer)(_THIS, SDL_Window *window)
int(* CreateWindow)(_THIS, SDL_Window *window)
void(* GL_UnloadLibrary)(_THIS)
struct SDL_WindowUserData * next
void SDL_OnWindowMinimized(SDL_Window *window)
void(* GL_GetDrawableSize)(_THIS, SDL_Window *window, int *w, int *h)
SDL_GLContext current_glctx
int(* ShowMessageBox)(_THIS, const SDL_MessageBoxData *messageboxdata, int *buttonid)
GLint GLenum GLsizei GLsizei GLsizei GLint GLsizei const GLvoid * data
int SDL_RecreateWindow(SDL_Window *window, Uint32 flags)
int(* SetWindowShape)(SDL_WindowShaper *shaper, SDL_Surface *shape, SDL_WindowShapeMode *shape_mode)
SDL_WindowShaper * shaper
SDL_Window * SDL_GetFocusWindow(void)
int(* SetWindowGammaRamp)(_THIS, SDL_Window *window, const Uint16 *ramp)
SDL_DisplayMode * display_modes
SDL_DisplayMode current_mode
SDL_VideoDisplay * displays
void SDL_OnWindowLeave(SDL_Window *window)
GLint GLenum GLsizei GLsizei GLsizei GLint GLenum format
void(* SetWindowPosition)(_THIS, SDL_Window *window)
void(* PumpEvents)(_THIS)
union SDL_SysWMinfo::@78 info
MessageBox structure containing title, text, window, etc.
SDL_Window * fullscreen_window
void(* SetWindowMinimumSize)(_THIS, SDL_Window *window)
int share_with_current_context
void(* SuspendScreenSaver)(_THIS)
int(* GL_GetSwapInterval)(_THIS)
SDL_bool SDL_ShouldAllowTopmost(void)
SDL_DisplayMode desktop_mode
void(* GL_DeleteContext)(_THIS, SDL_GLContext context)
void(* MaximizeWindow)(_THIS, SDL_Window *window)
GLint GLenum GLsizei GLsizei GLsizei GLint GLenum GLenum const GLvoid * pixels
void(* DestroyWindow)(_THIS, SDL_Window *window)
void(* SetTextInputRect)(_THIS, SDL_Rect *rect)
void(* SetWindowSize)(_THIS, SDL_Window *window)
GLenum GLsizei GLsizei GLsizei GLsizei GLbitfield flags
int(* SetDisplayMode)(_THIS, SDL_VideoDisplay *display, SDL_DisplayMode *mode)
SDL_VideoDisplay * SDL_GetDisplayForWindow(SDL_Window *window)
uint8_t Uint8
An unsigned 8-bit integer type.
SDL_TLSID current_glctx_tls
SDL_GLContext(* GL_CreateContext)(_THIS, SDL_Window *window)
int(* GL_LoadLibrary)(_THIS, const char *path)
void SDL_OnWindowFocusLost(SDL_Window *window)
void(* GL_SwapWindow)(_THIS, SDL_Window *window)
void(* ShowWindow)(_THIS, SDL_Window *window)
SDL_bool SDL_AddDisplayMode(SDL_VideoDisplay *display, const SDL_DisplayMode *mode)
SDL_VideoDevice * SDL_GetVideoDevice(void)
SDL_ShapeDriver shape_driver
int(* CreateWindowFramebuffer)(_THIS, SDL_Window *window, Uint32 *format, void **pixels, int *pitch)
SDL_bool suspend_screensaver
GLint GLint GLint GLint GLint w
uint16_t Uint16
An unsigned 16-bit integer type.
SDL_bool(* HasClipboardText)(_THIS)
void SDL_OnWindowRestored(SDL_Window *window)
void SDL_OnWindowShown(SDL_Window *window)
A struct that tags the SDL_WindowShapeParams union with an enum describing the type of its contents...
void(* SetWindowTitle)(_THIS, SDL_Window *window)
void(* SetWindowBordered)(_THIS, SDL_Window *window, SDL_bool bordered)
void(* StartTextInput)(_THIS)
void(* SetWindowFullscreen)(_THIS, SDL_Window *window, SDL_VideoDisplay *display, SDL_bool fullscreen)
void(* OnWindowEnter)(_THIS, SDL_Window *window)
struct SDL_VideoDevice::@87 gl_config
SDL_Window * current_glwin
struct SDL_WindowUserData SDL_WindowUserData
SDL_WindowUserData * data
int(* ResizeWindowShape)(SDL_Window *window)
A rectangle, with the origin at the upper left.
void(* ShowScreenKeyboard)(_THIS, SDL_Window *window)
void(* RestoreWindow)(_THIS, SDL_Window *window)
void SDL_OnWindowFocusGained(SDL_Window *window)