SDL_EGL_GetCurrentConfig(3)
β¨ SDL_EGL_GetCurrentConfig β¨
okay bestie, welcome to the SDL3 FUNCTIONS corner of the manual, where we're talking about SDL_EGL_GetCurrentConfig π
πΈ NAME πΈ
SDL_EGL_GetCurrentConfig β get the currently active EGL config. that's it. that's the whole vibe. π
π¦ SYNOPSIS π¦
#include <SDL3/SDL_video.h>
SDL_EGLConfig SDL_EGL_GetCurrentConfig(void);
no arguments, no drama, she just takes nothing and gives you the config π«Ά
π RETURN VALUE π
She returns the currently active EGL config β slay β or NULL on failure π
And if you get that NULL? Do not panic, do not spiral, just call SDL_GetError() for more information. That's your bestie telling you what actually went wrong π
π§ THREAD SAFETY π§
β οΈ This function should only be called on the main thread.
Like, main character energy only. Don't be sending your little side-thread to do main-thread business, she will not be happy π
π AVAILABILITY π
This function is available since SDL 3.2.0. so if you're on anything older, no config for you, babe β
and that's the whole page, periodt π β¨
anyway, this lil' page came to you courtesy of Simple Directmedia Layer, running SDL 3.4.18 β mwah, take care of her, she's iconic ππ
π¦ 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