SDL_EGL_GetCurrentDisplay(3)
π SDL_EGL_GetCurrentDisplay π
okay bestie, welcome to the SDL3 FUNCTIONS section of the manual, and today's main character is SDL_EGL_GetCurrentDisplay β she's here to get you the currently active EGL display. that's it, that's the whole job. short king. π
β¨ NAME β¨
SDL_EGL_GetCurrentDisplay β get the currently active EGL display. no cap, that's literally what she does. π¦
β¨ SYNOPSIS β¨
#include <SDL3/SDL_video.h>
SDL_EGLDisplay SDL_EGL_GetCurrentDisplay(void);
so you pull in the header, you call her with zero arguments, and she hands you back an SDL_EGLDisplay. no parameters, no drama. π
β¨ RETURN VALUE β¨
she returns the currently active EGL display, or NULL if things went sideways π β and if you get that NULL, bestie, do NOT just sit there guessing what happened. call SDL_GetError() for more information. she'll tell you. fr fr. π«Ά
β¨ THREAD SAFETY β¨
π¨ okay important: this function should only be called on the main thread. do not try to be cute and call her from a worker thread. she does not want that energy. π
β¨ AVAILABILITY β¨
this function is available since SDL 3.2.0. so if you're on anything older... yeah, no. upgrade era. β
and that's the whole page, you're welcome π
Simple Directmedia Layer β SDL 3.4.18 β SDL_EGL_GetCurrentDisplay(3) π
mwah, go call SDL_GetError() when it returns NULL, i'm so serious. bye bestie! πΈπ§ββοΈ
π¦ where this page comes from
- fedora 43: SDL3-devel 3.4.18-1.fc43 Β· Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 OR MIT)
- fedora 43: SDL3-devel 3.4.18-1.fc43 Β· Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 OR MIT)
- fedora 44: SDL3-devel 3.4.18-1.fc44 Β· Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 OR MIT)
- fedora 44: SDL3-devel 3.4.18-1.fc44 Β· Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 OR MIT)
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms