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