21 #include "../../SDL_internal.h" 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",
GLint GLint GLsizei GLsizei GLsizei GLint GLenum format
#define SDL_GetWindowData
static SDL_Window * window
A collection of pixels used in software blitting.
#define SDL_SaveBMP(surface, file)
GLint GLint GLsizei GLsizei GLsizei GLint GLenum GLenum const GLvoid * pixels
uint32_t Uint32
An unsigned 32-bit integer type.
set set set set set set set macro pixldst1 abits if abits op else op endif endm macro pixldst2 abits if abits op else op endif endm macro pixldst4 abits if abits op else op endif endm macro pixldst0 abits op endm macro pixldst3 mem_operand op endm macro pixldst30 mem_operand op endm macro pixldst abits if abits elseif abits elseif abits elseif abits elseif abits pixldst0 abits else pixldst0 abits pixldst0 abits pixldst0 abits pixldst0 abits endif elseif abits else pixldst0 abits pixldst0 abits endif elseif abits else error unsupported bpp
#define SDL_SetWindowData
#define SDL_GetWindowSize
void SDL_DUMMY_DestroyWindowFramebuffer(_THIS, SDL_Window *window)
int SDL_DUMMY_UpdateWindowFramebuffer(_THIS, SDL_Window *window, const SDL_Rect *rects, int numrects)
#define SDL_PixelFormatEnumToMasks
#define SDL_CreateRGBSurface
The type used to identify a window.
SDL_Rect rects[MAX_RECTS]
GLubyte GLubyte GLubyte GLubyte w
GLfloat GLfloat GLfloat GLfloat h
int SDL_DUMMY_CreateWindowFramebuffer(_THIS, SDL_Window *window, Uint32 *format, void **pixels, int *pitch)
A rectangle, with the origin at the upper left.