sdlGlGetCurrentWindow function

Pointer<SdlWindow> sdlGlGetCurrentWindow()

Get the currently active OpenGL window.

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

\since This function is available since SDL 2.0.0.

extern DECLSPEC SDL_Window* SDLCALL SDL_GL_GetCurrentWindow(void)

Implementation

Pointer<SdlWindow> sdlGlGetCurrentWindow() {
  final sdlGlGetCurrentWindowLookupFunction = libSdl2.lookupFunction<
      Pointer<SdlWindow> Function(),
      Pointer<SdlWindow> Function()>('SDL_GL_GetCurrentWindow');
  return sdlGlGetCurrentWindowLookupFunction();
}