21 #include "../../SDL_internal.h" 23 #if SDL_VIDEO_DRIVER_DUMMY 42 #include "../SDL_sysvideo.h" 43 #include "../SDL_pixels_c.h" 44 #include "../../events/SDL_events_c.h" 50 #define DUMMYVID_DRIVER_NAME "dummy" 53 static int DUMMY_VideoInit(
_THIS);
55 static void DUMMY_VideoQuit(
_THIS);
62 const char *envr =
SDL_getenv(
"SDL_VIDEODRIVER");
63 if ((envr) && (
SDL_strcmp(envr, DUMMYVID_DRIVER_NAME) == 0)) {
77 DUMMY_CreateDevice(
int devindex)
98 device->
free = DUMMY_DeleteDevice;
104 DUMMYVID_DRIVER_NAME,
"SDL dummy video driver",
105 DUMMY_Available, DUMMY_CreateDevice
110 DUMMY_VideoInit(
_THIS)
138 DUMMY_VideoQuit(
_THIS)
int SDL_AddBasicVideoDisplay(const SDL_DisplayMode *desktop_mode)
The structure that defines a display mode.
int(* SetDisplayMode)(_THIS, SDL_VideoDisplay *display, SDL_DisplayMode *mode)
static SDL_VideoDevice * _this
static SDL_AudioDeviceID device
void SDL_DUMMY_DestroyWindowFramebuffer(_THIS, SDL_Window *window)
int SDL_DUMMY_UpdateWindowFramebuffer(_THIS, SDL_Window *window, const SDL_Rect *rects, int numrects)
SDL_VideoDisplay * displays
void DUMMY_PumpEvents(_THIS)
void(* DestroyWindowFramebuffer)(_THIS, SDL_Window *window)
#define SDL_OutOfMemory()
VideoBootStrap DUMMY_bootstrap
SDL_bool SDL_AddDisplayMode(SDL_VideoDisplay *display, const SDL_DisplayMode *mode)
int(* UpdateWindowFramebuffer)(_THIS, SDL_Window *window, const SDL_Rect *rects, int numrects)
int(* CreateWindowFramebuffer)(_THIS, SDL_Window *window, Uint32 *format, void **pixels, int *pitch)
int SDL_DUMMY_CreateWindowFramebuffer(_THIS, SDL_Window *window, Uint32 *format, void **pixels, int *pitch)
void(* PumpEvents)(_THIS)