23 #if SDL_VIDEO_DRIVER_DUMMY
25 #include "../SDL_sysvideo.h"
29 #define DUMMY_SURFACE "_SDL_DummySurface"
37 Uint32 Rmask, Gmask, Bmask, Amask;
53 *format = surface_format;
55 *pitch = surface->
pitch;
61 static int frame_number;
66 return SDL_SetError(
"Couldn't find dummy surface for window");
70 if (
SDL_getenv(
"SDL_VIDEO_DUMMY_SAVE_FRAMES")) {
72 SDL_snprintf(file,
sizeof(file),
"SDL_window%d-%8.8d.bmp",
DECLSPEC void SDLCALL SDL_FreeSurface(SDL_Surface *surface)
DECLSPEC SDL_Surface *SDLCALL SDL_CreateRGBSurface(Uint32 flags, int width, int height, int depth, Uint32 Rmask, Uint32 Gmask, Uint32 Bmask, Uint32 Amask)
GLfloat GLfloat GLfloat GLfloat h
DECLSPEC int SDLCALL SDL_snprintf(char *text, size_t maxlen, const char *fmt,...)
A collection of pixels used in software blitting.
#define SDL_SaveBMP(surface, file)
DECLSPEC void SDLCALL SDL_GetWindowSize(SDL_Window *window, int *w, int *h)
Get the size of a window's client area.
uint32_t Uint32
An unsigned 32-bit integer type.
void SDL_DUMMY_DestroyWindowFramebuffer(_THIS, SDL_Window *window)
int SDL_DUMMY_UpdateWindowFramebuffer(_THIS, SDL_Window *window, const SDL_Rect *rects, int numrects)
DECLSPEC void *SDLCALL SDL_SetWindowData(SDL_Window *window, const char *name, void *userdata)
Associate an arbitrary named pointer with a window.
DECLSPEC Uint32 SDLCALL SDL_GetWindowID(SDL_Window *window)
Get the numeric ID of a window, for logging purposes.
GLint GLenum GLsizei GLsizei GLsizei GLint GLenum format
DECLSPEC int SDLCALL SDL_SetError(const char *fmt,...)
DECLSPEC void *SDLCALL SDL_GetWindowData(SDL_Window *window, const char *name)
Retrieve the data pointer associated with a window.
GLint GLenum GLsizei GLsizei GLsizei GLint GLenum GLenum const GLvoid * pixels
DECLSPEC SDL_bool SDLCALL SDL_PixelFormatEnumToMasks(Uint32 format, int *bpp, Uint32 *Rmask, Uint32 *Gmask, Uint32 *Bmask, Uint32 *Amask)
Convert one of the enumerated pixel formats to a bpp and RGBA masks.
GLint GLint GLint GLint GLint w
DECLSPEC char *SDLCALL SDL_getenv(const char *name)
int SDL_DUMMY_CreateWindowFramebuffer(_THIS, SDL_Window *window, Uint32 *format, void **pixels, int *pitch)
A rectangle, with the origin at the upper left.