sdlGetRenderWindow function
Get the window associated with a renderer.
\param renderer the renderer to query. \returns the window on success or NULL on failure; call SDL_GetError() for more information.
\threadsafety It is safe to call this function from any thread.
\since This function is available since SDL 3.1.3.
extern SDL_DECLSPEC SDL_Window * SDLCALL SDL_GetRenderWindow(SDL_Renderer *renderer)
Implementation
Pointer<SdlWindow> sdlGetRenderWindow(Pointer<SdlRenderer> renderer) {
final sdlGetRenderWindowLookupFunction = libSdl3.lookupFunction<
Pointer<SdlWindow> Function(Pointer<SdlRenderer> renderer),
Pointer<SdlWindow> Function(
Pointer<SdlRenderer> renderer)>('SDL_GetRenderWindow');
return sdlGetRenderWindowLookupFunction(renderer);
}