SDL_GL_GetCurrentContext - Get the currently active OpenGL context.
Contents
Availability
This function is available since SDL 3.2.0.
Header File
Defined in SDL3/SDL_video.h
Name
SDL_GL_GetCurrentContext - Get the currently active OpenGL context.
Return Value
( SDL_GLContext ) Returns the currently active OpenGL context or NULL on failure; call SDL_GetError ()
for more information.
See Also
•(3), SDL_GL_MakeCurrent(3) Simple Directmedia Layer SDL 3.2.10 SDL_GL_GetCurrentContext(3)
Synopsis
#include"SDL3/SDL.h"SDL_GLContextSDL_GL_GetCurrentContext(void);
Thread Safety
This function should only be called on the main thread.
