getRenderer method

Pointer<SdlRenderer> getRenderer()

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.

\threadsafety It is safe to call this function from any thread.

\since This function is available since SDL 3.2.0.

extern SDL_DECLSPEC SDL_Renderer * SDLCALL SDL_GetRenderer(SDL_Window *window)

{@category render}

Implementation

Pointer<SdlRenderer> getRenderer() => sdlGetRenderer(this);