sdlGetRenderer function
Get the renderer associated with a window.
\param window the window to query \returns the rendering context on success or NULL on failure; call SDL_GetError() for more information.
\since This function is available since SDL 2.0.0.
\sa SDL_CreateRenderer
extern DECLSPEC SDL_Renderer * SDLCALL SDL_GetRenderer(SDL_Window * window)
Implementation
Pointer<SdlRenderer> sdlGetRenderer(Pointer<SdlWindow> window) {
final sdlGetRendererLookupFunction = libSdl2.lookupFunction<
Pointer<SdlRenderer> Function(Pointer<SdlWindow> window),
Pointer<SdlRenderer> Function(
Pointer<SdlWindow> window)>('SDL_GetRenderer');
return sdlGetRendererLookupFunction(window);
}