Lines Matching refs:egl_data

97 _this->egl_data->NAME = (void *)NAME;
100 _this->egl_data->NAME = SDL_LoadFunction(_this->egl_data->dll_handle, #NAME); \
101 if (!_this->egl_data->NAME) \
109 _this->egl_data->NAME = _this->egl_data->eglGetProcAddress(#NAME);
186 egl_extstr = _this->egl_data->eglQueryString(_this->egl_data->egl_display, EGL_EXTENSIONS); in SDL_EGL_HasExtension()
193 egl_extstr = _this->egl_data->eglQueryString(EGL_NO_DISPLAY, EGL_EXTENSIONS); in SDL_EGL_HasExtension()
228 …const Uint32 eglver = (((Uint32) _this->egl_data->egl_version_major) << 16) | ((Uint32) _this->egl… in SDL_EGL_GetProcAddress()
233 if (!retval && is_egl_15_or_later && _this->egl_data->eglGetProcAddress) { in SDL_EGL_GetProcAddress()
234 retval = _this->egl_data->eglGetProcAddress(proc); in SDL_EGL_GetProcAddress()
241 retval = SDL_LoadFunction(_this->egl_data->egl_dll_handle, proc); in SDL_EGL_GetProcAddress()
246 retval = SDL_LoadFunction(_this->egl_data->egl_dll_handle, procname); in SDL_EGL_GetProcAddress()
252 if (!retval && !is_egl_15_or_later && _this->egl_data->eglGetProcAddress) { in SDL_EGL_GetProcAddress()
253 retval = _this->egl_data->eglGetProcAddress(proc); in SDL_EGL_GetProcAddress()
265 if (_this->egl_data) { in SDL_EGL_UnloadLibrary()
266 if (_this->egl_data->egl_display) { in SDL_EGL_UnloadLibrary()
267 _this->egl_data->eglTerminate(_this->egl_data->egl_display); in SDL_EGL_UnloadLibrary()
268 _this->egl_data->egl_display = NULL; in SDL_EGL_UnloadLibrary()
271 if (_this->egl_data->dll_handle) { in SDL_EGL_UnloadLibrary()
272 SDL_UnloadObject(_this->egl_data->dll_handle); in SDL_EGL_UnloadLibrary()
273 _this->egl_data->dll_handle = NULL; in SDL_EGL_UnloadLibrary()
275 if (_this->egl_data->egl_dll_handle) { in SDL_EGL_UnloadLibrary()
276 SDL_UnloadObject(_this->egl_data->egl_dll_handle); in SDL_EGL_UnloadLibrary()
277 _this->egl_data->egl_dll_handle = NULL; in SDL_EGL_UnloadLibrary()
280 SDL_free(_this->egl_data); in SDL_EGL_UnloadLibrary()
281 _this->egl_data = NULL; in SDL_EGL_UnloadLibrary()
297 if (_this->egl_data) { in SDL_EGL_LoadLibraryOnly()
301 _this->egl_data = (struct SDL_EGL_VideoData *) SDL_calloc(1, sizeof(SDL_EGL_VideoData)); in SDL_EGL_LoadLibraryOnly()
302 if (!_this->egl_data) { in SDL_EGL_LoadLibraryOnly()
377 _this->egl_data->egl_dll_handle = egl_dll_handle; in SDL_EGL_LoadLibraryOnly()
415 _this->egl_data->dll_handle = dll_handle; in SDL_EGL_LoadLibraryOnly()
454 if (_this->egl_data->eglQueryString) { in SDL_EGL_GetVersion()
455 …const char *egl_version = _this->egl_data->eglQueryString(_this->egl_data->egl_display, EGL_VERSIO… in SDL_EGL_GetVersion()
459 _this->egl_data->egl_version_major = major; in SDL_EGL_GetVersion()
460 _this->egl_data->egl_version_minor = minor; in SDL_EGL_GetVersion()
480 egl_version_major = _this->egl_data->egl_version_major; in SDL_EGL_LoadLibrary()
481 egl_version_minor = _this->egl_data->egl_version_minor; in SDL_EGL_LoadLibrary()
487 _this->egl_data->egl_display = EGL_NO_DISPLAY; in SDL_EGL_LoadLibrary()
491 …_this->egl_data->egl_display = _this->egl_data->eglGetPlatformDisplay(platform, (void *)(size_t)na… in SDL_EGL_LoadLibrary()
494 …_this->egl_data->eglGetPlatformDisplayEXT = SDL_EGL_GetProcAddress(_this, "eglGetPlatformDisplayEX… in SDL_EGL_LoadLibrary()
495 if (_this->egl_data->eglGetPlatformDisplayEXT) { in SDL_EGL_LoadLibrary()
496 …_this->egl_data->egl_display = _this->egl_data->eglGetPlatformDisplayEXT(platform, (void *)(size_t… in SDL_EGL_LoadLibrary()
502 if (_this->egl_data->egl_display == EGL_NO_DISPLAY) { in SDL_EGL_LoadLibrary()
503 _this->egl_data->egl_display = _this->egl_data->eglGetDisplay(native_display); in SDL_EGL_LoadLibrary()
505 if (_this->egl_data->egl_display == EGL_NO_DISPLAY) { in SDL_EGL_LoadLibrary()
511 if (_this->egl_data->eglInitialize(_this->egl_data->egl_display, NULL, NULL) != EGL_TRUE) { in SDL_EGL_LoadLibrary()
521 _this->egl_data->is_offscreen = 0; in SDL_EGL_LoadLibrary()
546 if (_this->egl_data->eglQueryDevicesEXT == NULL) { in SDL_EGL_InitializeOffscreen()
550 if (_this->egl_data->eglGetPlatformDisplayEXT == NULL) { in SDL_EGL_InitializeOffscreen()
554 …if (_this->egl_data->eglQueryDevicesEXT(SDL_EGL_MAX_DEVICES, egl_devices, &num_egl_devices) != EGL… in SDL_EGL_InitializeOffscreen()
566 …_this->egl_data->egl_display = _this->egl_data->eglGetPlatformDisplayEXT(EGL_PLATFORM_DEVICE_EXT, … in SDL_EGL_InitializeOffscreen()
568 if (_this->egl_data->egl_display == EGL_NO_DISPLAY) { in SDL_EGL_InitializeOffscreen()
572 if (_this->egl_data->eglInitialize(_this->egl_data->egl_display, NULL, NULL) != EGL_TRUE) { in SDL_EGL_InitializeOffscreen()
583 …attempted_egl_display = _this->egl_data->eglGetPlatformDisplayEXT(EGL_PLATFORM_DEVICE_EXT, egl_dev… in SDL_EGL_InitializeOffscreen()
589 if (_this->egl_data->eglInitialize(attempted_egl_display, NULL, NULL) != EGL_TRUE) { in SDL_EGL_InitializeOffscreen()
590 _this->egl_data->eglTerminate(attempted_egl_display); in SDL_EGL_InitializeOffscreen()
595 _this->egl_data->egl_display = attempted_egl_display; in SDL_EGL_InitializeOffscreen()
609 _this->egl_data->is_offscreen = 1; in SDL_EGL_InitializeOffscreen()
617 _this->egl_data->egl_required_visual_id=visual_id; in SDL_EGL_SetRequiredVisualId()
671 …_this->egl_data->eglGetConfigAttrib(_this->egl_data->egl_display, config, attributes[attr].attribu… in dumpconfig()
689 if (!_this->egl_data) { in SDL_EGL_ChooseConfig()
731 if (_this->egl_data->is_offscreen) { in SDL_EGL_ChooseConfig()
749 _this->egl_data->eglBindAPI(EGL_OPENGL_ES_API); in SDL_EGL_ChooseConfig()
752 _this->egl_data->eglBindAPI(EGL_OPENGL_API); in SDL_EGL_ChooseConfig()
755 if (_this->egl_data->egl_surfacetype) { in SDL_EGL_ChooseConfig()
757 attribs[i++] = _this->egl_data->egl_surfacetype; in SDL_EGL_ChooseConfig()
762 if (_this->egl_data->eglChooseConfig(_this->egl_data->egl_display, in SDL_EGL_ChooseConfig()
772 if (_this->egl_data->egl_required_visual_id) in SDL_EGL_ChooseConfig()
775 _this->egl_data->eglGetConfigAttrib(_this->egl_data->egl_display, in SDL_EGL_ChooseConfig()
778 if (_this->egl_data->egl_required_visual_id == format) in SDL_EGL_ChooseConfig()
787 if (has_matching_format && _this->egl_data->egl_required_visual_id) in SDL_EGL_ChooseConfig()
790 _this->egl_data->eglGetConfigAttrib(_this->egl_data->egl_display, in SDL_EGL_ChooseConfig()
793 if (_this->egl_data->egl_required_visual_id != format) in SDL_EGL_ChooseConfig()
810 … _this->egl_data->eglGetConfigAttrib(_this->egl_data->egl_display, configs[i], attribs[j], &value); in SDL_EGL_ChooseConfig()
816 _this->egl_data->egl_config = configs[i]; in SDL_EGL_ChooseConfig()
827 dumpconfig(_this, _this->egl_data->egl_config); in SDL_EGL_ChooseConfig()
846 if (!_this->egl_data) { in SDL_EGL_CreateContext()
863 int egl_version_major = _this->egl_data->egl_version_major; in SDL_EGL_CreateContext()
864 int egl_version_minor = _this->egl_data->egl_version_minor; in SDL_EGL_CreateContext()
934 _this->egl_data->eglBindAPI(EGL_OPENGL_ES_API); in SDL_EGL_CreateContext()
936 _this->egl_data->eglBindAPI(EGL_OPENGL_API); in SDL_EGL_CreateContext()
939 egl_context = _this->egl_data->eglCreateContext(_this->egl_data->egl_display, in SDL_EGL_CreateContext()
940 _this->egl_data->egl_config, in SDL_EGL_CreateContext()
948 _this->egl_data->egl_swapinterval = 0; in SDL_EGL_CreateContext()
967 if ((_this->egl_data->egl_version_major > 1) || in SDL_EGL_CreateContext()
968 ((_this->egl_data->egl_version_major == 1) && (_this->egl_data->egl_version_minor >= 5)) || in SDL_EGL_CreateContext()
1002 if (!_this->egl_data) { in SDL_EGL_MakeCurrent()
1010 …_this->egl_data->eglMakeCurrent(_this->egl_data->egl_display, EGL_NO_SURFACE, EGL_NO_SURFACE, EGL_… in SDL_EGL_MakeCurrent()
1012 if (!_this->egl_data->eglMakeCurrent(_this->egl_data->egl_display, in SDL_EGL_MakeCurrent()
1026 if (!_this->egl_data) { in SDL_EGL_SetSwapInterval()
1030 status = _this->egl_data->eglSwapInterval(_this->egl_data->egl_display, interval); in SDL_EGL_SetSwapInterval()
1032 _this->egl_data->egl_swapinterval = interval; in SDL_EGL_SetSwapInterval()
1042 if (!_this->egl_data) { in SDL_EGL_GetSwapInterval()
1047 return _this->egl_data->egl_swapinterval; in SDL_EGL_GetSwapInterval()
1053 if (!_this->egl_data->eglSwapBuffers(_this->egl_data->egl_display, egl_surface)) { in SDL_EGL_SwapBuffers()
1065 if (!_this->egl_data) { in SDL_EGL_DeleteContext()
1070 _this->egl_data->eglDestroyContext(_this->egl_data->egl_display, egl_context); in SDL_EGL_DeleteContext()
1094 _this->egl_data->eglGetConfigAttrib(_this->egl_data->egl_display, in SDL_EGL_CreateSurface()
1095 _this->egl_data->egl_config, in SDL_EGL_CreateSurface()
1120 surface = _this->egl_data->eglCreateWindowSurface( in SDL_EGL_CreateSurface()
1121 _this->egl_data->egl_display, in SDL_EGL_CreateSurface()
1122 _this->egl_data->egl_config, in SDL_EGL_CreateSurface()
1143 return _this->egl_data->eglCreatePbufferSurface( in SDL_EGL_CreateOffscreenSurface()
1144 _this->egl_data->egl_display, in SDL_EGL_CreateOffscreenSurface()
1145 _this->egl_data->egl_config, in SDL_EGL_CreateOffscreenSurface()
1152 if (!_this->egl_data) { in SDL_EGL_DestroySurface()
1157 _this->egl_data->eglDestroySurface(_this->egl_data->egl_display, egl_surface); in SDL_EGL_DestroySurface()