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);
61 OFFSCREEN_CreateDevice(
int devindex)
73 device->VideoInit = OFFSCREEN_VideoInit;
74 device->VideoQuit = OFFSCREEN_VideoQuit;
75 device->SetDisplayMode = OFFSCREEN_SetDisplayMode;
80 device->free = OFFSCREEN_DeleteDevice;
101 OFFSCREENVID_DRIVER_NAME,
"SDL offscreen video driver",
102 OFFSCREEN_CreateDevice
106 OFFSCREEN_VideoInit(
_THIS)
115 mode.refresh_rate = 0;
135 OFFSCREEN_VideoQuit(
_THIS)
#define SDL_OutOfMemory()
void OFFSCREEN_PumpEvents(_THIS)
int SDL_OFFSCREEN_UpdateWindowFramebuffer(_THIS, SDL_Window *window, const SDL_Rect *rects, int numrects)
int SDL_OFFSCREEN_CreateWindowFramebuffer(_THIS, SDL_Window *window, Uint32 *format, void **pixels, int *pitch)
void SDL_OFFSCREEN_DestroyWindowFramebuffer(_THIS, SDL_Window *window)
int OFFSCREEN_GL_SwapWindow(_THIS, SDL_Window *window)
#define OFFSCREEN_GL_SetSwapInterval
void * OFFSCREEN_GL_GetProcAddress(_THIS, const char *proc)
#define OFFSCREEN_GL_GetSwapInterval
int OFFSCREEN_GL_LoadLibrary(_THIS, const char *path)
int OFFSCREEN_GL_MakeCurrent(_THIS, SDL_Window *window, SDL_GLContext context)
SDL_GLContext OFFSCREEN_GL_CreateContext(_THIS, SDL_Window *window)
#define OFFSCREEN_GL_DeleteContext
void OFFSCREEN_GL_UnloadLibrary(_THIS)
void OFFSCREEN_DestroyWindow(_THIS, SDL_Window *window)
int OFFSCREEN_CreateWindow(_THIS, SDL_Window *window)
int SDL_AddBasicVideoDisplay(const SDL_DisplayMode *desktop_mode)
VideoBootStrap OFFSCREEN_bootstrap
SDL_bool SDL_AddDisplayMode(SDL_VideoDisplay *display, const SDL_DisplayMode *mode)
static SDL_VideoDevice * _this
static SDL_AudioDeviceID device
The structure that defines a display mode.
SDL_VideoDisplay * displays