Go to the documentation of this file.
22 #include "../../SDL_internal.h"
24 #if SDL_VIDEO_DRIVER_OFFSCREEN
26 #include "../SDL_sysvideo.h"
30 #define OFFSCREEN_SURFACE "_SDL_DummySurface"
38 Uint32 Rmask, Gmask, Bmask, Amask;
67 return SDL_SetError(
"Couldn't find offscreen surface for window");
71 if (
SDL_getenv(
"SDL_VIDEO_OFFSCREEN_SAVE_FRAMES")) {
73 SDL_snprintf(file,
sizeof(file),
"SDL_window%d-%8.8d.bmp",
GLint GLint GLsizei GLsizei GLsizei GLint GLenum format
#define SDL_GetWindowData
A collection of pixels used in software blitting.
int SDL_OFFSCREEN_UpdateWindowFramebuffer(_THIS, SDL_Window *window, const SDL_Rect *rects, int numrects)
GLfloat GLfloat GLfloat GLfloat h
The type used to identify a window.
#define SDL_GetWindowSize
EGLSurface EGLNativeWindowType * window
#define SDL_SetWindowData
#define SDL_PixelFormatEnumToMasks
GLint GLint GLsizei GLsizei GLsizei GLint GLenum GLenum const GLvoid * pixels
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_CreateRGBSurface
A rectangle, with the origin at the upper left (integer).
void SDL_OFFSCREEN_DestroyWindowFramebuffer(_THIS, SDL_Window *window)
int SDL_OFFSCREEN_CreateWindowFramebuffer(_THIS, SDL_Window *window, Uint32 *format, void **pixels, int *pitch)
#define SDL_SaveBMP(surface, file)
EGLSurface EGLint * rects
GLubyte GLubyte GLubyte GLubyte w