Skip to main content

SDL_GL_GetCurrentWindow

Function SDL_GL_GetCurrentWindow 

Source
pub unsafe extern "C" fn SDL_GL_GetCurrentWindow() -> *mut SDL_Window
Expand description

Get the currently active OpenGL window.

Returns: the currently active OpenGL window on success or NULL on failure; call SDL_GetError() for more information.

Thread Safety: This function should only be called on the main thread.

Available Since: This function is available since SDL 3.2.0.