Go to the documentation of this file.
22 #include "../../SDL_internal.h"
24 #if SDL_VIDEO_DRIVER_OFFSCREEN
36 #include "../SDL_sysvideo.h"
37 #include "../SDL_pixels_c.h"
38 #include "../../events/SDL_events_c.h"
45 #define OFFSCREENVID_DRIVER_NAME "offscreen"
48 static int OFFSCREEN_VideoInit(
_THIS);
50 static void OFFSCREEN_VideoQuit(
_THIS);
55 OFFSCREEN_Available(
void)
68 OFFSCREEN_CreateDevice(
int devindex)
80 device->VideoInit = OFFSCREEN_VideoInit;
81 device->VideoQuit = OFFSCREEN_VideoQuit;
82 device->SetDisplayMode = OFFSCREEN_SetDisplayMode;
87 device->free = OFFSCREEN_DeleteDevice;
108 OFFSCREENVID_DRIVER_NAME,
"SDL offscreen video driver",
109 OFFSCREEN_Available, OFFSCREEN_CreateDevice
113 OFFSCREEN_GetGlobalMouseState(
int *
x,
int *
y)
126 OFFSCREEN_VideoInit(
_THIS)
135 mode.refresh_rate = 0;
160 OFFSCREEN_VideoQuit(
_THIS)
SDL_Mouse * SDL_GetMouse(void)
int OFFSCREEN_CreateWindow(_THIS, SDL_Window *window)
int OFFSCREEN_GL_LoadLibrary(_THIS, const char *path)
int SDL_OFFSCREEN_UpdateWindowFramebuffer(_THIS, SDL_Window *window, const SDL_Rect *rects, int numrects)
void OFFSCREEN_GL_UnloadLibrary(_THIS)
#define OFFSCREEN_GL_DeleteContext
The structure that defines a display mode.
SDL_bool SDL_AddDisplayMode(SDL_VideoDisplay *display, const SDL_DisplayMode *mode)
static SDL_VideoDevice * _this
GLint GLint GLint GLint GLint x
SDL_VideoDisplay * displays
VideoBootStrap OFFSCREEN_bootstrap
#define OFFSCREEN_GL_GetSwapInterval
void OFFSCREEN_DestroyWindow(_THIS, SDL_Window *window)
#define SDL_OutOfMemory()
GLint GLint GLint GLint GLint GLint y
int SDL_AddBasicVideoDisplay(const SDL_DisplayMode *desktop_mode)
SDL_GLContext OFFSCREEN_GL_CreateContext(_THIS, SDL_Window *window)
#define OFFSCREEN_GL_SetSwapInterval
Uint32(* GetGlobalMouseState)(int *x, int *y)
void OFFSCREEN_PumpEvents(_THIS)
void SDL_OFFSCREEN_DestroyWindowFramebuffer(_THIS, SDL_Window *window)
int OFFSCREEN_GL_MakeCurrent(_THIS, SDL_Window *window, SDL_GLContext context)
int SDL_OFFSCREEN_CreateWindowFramebuffer(_THIS, SDL_Window *window, Uint32 *format, void **pixels, int *pitch)
int OFFSCREEN_GL_SwapWindow(_THIS, SDL_Window *window)
static SDL_AudioDeviceID device
void * OFFSCREEN_GL_GetProcAddress(_THIS, const char *proc)