SDL_HINT_VIDEO_FORCE_EGL(3)
β¨ SDL_HINT_VIDEO_FORCE_EGL β¨
ok so bestie, welcome to the SDL3 FUNCTIONS corner of the man pages π
this one is all about SDL_HINT_VIDEO_FORCE_EGL β yes it's a mouthful, no you don't have to say it out loud.
πΈ NAME πΈ
SDL_HINT_VIDEO_FORCE_EGL β a variable that controls whether the OpenGL context gets created with EGL. that's it, that's the whole vibe π«Ά
π SYNOPSIS π
#include <SDL3/SDL_hints.h>
#define SDL_HINT_VIDEO_FORCE_EGL "SDL_VIDEO_FORCE_EGL"
like, that's the whole incantation. include the header, and the hint name is literally the string "SDL_VIDEO_FORCE_EGL" β¨
π DESCRIPTION π
so the variable can be set to these values, and bestie there are exactly two of them:
- "0" β use the platform-specific GL context creation API (GLX, WGL, CGL, etc). this is the default, it's giving "we'll do the normal thing, don't worry about it" π
- "1" β use EGL. periodt. no platform API, just EGL π₯
β οΈ okay this part matters: this hint should be set before SDL is initialized. set it late and it's giving "too late bestie" π
β AVAILABILITY β
this hint has been available since SDL 3.2.0 π¦ so if you're on anything older... yeah no, not for you π
and that's the page!! slay π written up in the Simple Directmedia Layer docs, from SDL 3.4.18 β go forth and force your EGL, you main character ππ
π¦ 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