22 #include "../../SDL_internal.h"
24 #if SDL_VIDEO_DRIVER_OFFSCREEN
26 #include "../SDL_egl_c.h"
27 #include "../SDL_sysvideo.h"
36 if (!offscreen_window) {
40 window->driverdata = offscreen_window;
54 if (!
_this->egl_data) {
55 return SDL_SetError(
"Cannot create an OPENGL window invalid egl_data");
61 return SDL_SetError(
"Failed to created an offscreen surface (EGL display: %p)",
62 _this->egl_data->egl_display);
77 if (offscreen_window) {
#define SDL_OutOfMemory()
void OFFSCREEN_DestroyWindow(_THIS, SDL_Window *window)
int OFFSCREEN_CreateWindow(_THIS, SDL_Window *window)
static SDL_VideoDevice * _this
#define SDL_WINDOWPOS_UNDEFINED
EGLSurface EGLNativeWindowType * window
The type used to identify a window.