Home
last modified time | relevance | path

Searched refs:offscreen_window (Results 1 – 2 of 2) sorted by relevance

/AliOS-Things-master/components/SDL2/src/video/offscreen/
A DSDL_offscreenwindow.c34 OFFSCREEN_Window* offscreen_window = SDL_calloc(1, sizeof(OFFSCREEN_Window)); in OFFSCREEN_CreateWindow() local
36 if (!offscreen_window) { in OFFSCREEN_CreateWindow()
40 window->driverdata = offscreen_window; in OFFSCREEN_CreateWindow()
50 offscreen_window->sdl_window = window; in OFFSCREEN_CreateWindow()
58 offscreen_window->egl_surface = SDL_EGL_CreateOffscreenSurface(_this, window->w, window->h); in OFFSCREEN_CreateWindow()
60 if (offscreen_window->egl_surface == EGL_NO_SURFACE) { in OFFSCREEN_CreateWindow()
66 offscreen_window->egl_surface = EGL_NO_SURFACE; in OFFSCREEN_CreateWindow()
75 OFFSCREEN_Window* offscreen_window = window->driverdata; in OFFSCREEN_DestroyWindow() local
77 if (offscreen_window) { in OFFSCREEN_DestroyWindow()
78 SDL_EGL_DestroySurface(_this, offscreen_window->egl_surface); in OFFSCREEN_DestroyWindow()
[all …]
A DSDL_offscreenopengl.c53 OFFSCREEN_Window* offscreen_window = window->driverdata; in OFFSCREEN_GL_CreateContext() local
56 context = SDL_EGL_CreateContext(_this, offscreen_window->egl_surface); in OFFSCREEN_GL_CreateContext()

Completed in 4 milliseconds