sdlGlGetCurrentWindow function
Get the currently active OpenGL window.
\returns the currently active OpenGL window on success or NULL on failure; call SDL_GetError() for more information.
\threadsafety This function should only be called on the main thread.
\since This function is available since SDL 3.1.3.
extern SDL_DECLSPEC SDL_Window * SDLCALL SDL_GL_GetCurrentWindow(void)
Implementation
Pointer<SdlWindow> sdlGlGetCurrentWindow() {
final sdlGlGetCurrentWindowLookupFunction = libSdl3.lookupFunction<
Pointer<SdlWindow> Function(),
Pointer<SdlWindow> Function()>('SDL_GL_GetCurrentWindow');
return sdlGlGetCurrentWindowLookupFunction();
}