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(* UpdateWindowFramebuffer)(_THIS, SDL_Window *window, const SDL_Rect *rects, int numrects)
DECLSPEC void *SDLCALL SDL_calloc(size_t nmemb, size_t size)
int SDL_AddBasicVideoDisplay(const SDL_DisplayMode *desktop_mode)
DECLSPEC void SDLCALL SDL_free(void *mem)
The structure that defines a display mode.
static SDL_VideoDevice * _this
void(* DestroyWindowFramebuffer)(_THIS, SDL_Window *window)
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
DECLSPEC int SDLCALL SDL_strcmp(const char *str1, const char *str2)
void(* PumpEvents)(_THIS)
void DUMMY_PumpEvents(_THIS)
#define SDL_OutOfMemory()
int(* SetDisplayMode)(_THIS, SDL_VideoDisplay *display, SDL_DisplayMode *mode)
SDL_bool SDL_AddDisplayMode(SDL_VideoDisplay *display, const SDL_DisplayMode *mode)
int(* CreateWindowFramebuffer)(_THIS, SDL_Window *window, Uint32 *format, void **pixels, int *pitch)
DECLSPEC char *SDLCALL SDL_getenv(const char *name)
int SDL_DUMMY_CreateWindowFramebuffer(_THIS, SDL_Window *window, Uint32 *format, void **pixels, int *pitch)