SDL_GL_GetCurrentContext(3)
π SDL_GL_GetCurrentContext π
okay bestie, welcome to the SDL_GL_GetCurrentContext(3) page, part of the SDL3 functions lineup β¨ β this one is short, sweet, and honestly iconic for what it does.
πΈ NAME πΈ
SDL_GL_GetCurrentContext β get the currently active OpenGL context, fr fr.
π SYNOPSIS π
#include <SDL3/SDL_video.h>
SDL_GLContext SDL_GL_GetCurrentContext(void);
like. that's it. no args. she takes nothing and gives you everything π
β RETURN VALUE β
Returns the currently active OpenGL context, or NULL if it failed π. If you get NULL, do not just sit there spiraling β call SDL_GetError() for more information, she will tell you what went wrong π«Ά
π₯ THREAD SAFETY π₯
This function should only be called on the main thread. no cap. don't be out here calling her from a side thread, she's not about that life π
π¦ AVAILABILITY π¦
This function has been available since SDL 3.2.0 β so if you're on anything older, sorry bestie, you're getting nothing π
π SEE ALSO π
SDL_GL_MakeCurrent(3)β the other half of this duo, go read her next π
and that's the whole page, you ate it π mwah. this cutie lives in Simple Directmedia Layer (that's the source, she's fancy like that) and this is SDL 3.4.18, periodt β¨ππ¦
π¦ 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