getTarget method

Pointer<SdlTexture> getTarget()

Get the current render target.

The default render target is the window for which the renderer was created, and is reported a NULL here.

\param renderer the rendering context. \returns the current render target or NULL for the default render target.

\threadsafety This function should only be called on the main thread.

\since This function is available since SDL 3.1.3.

\sa SDL_SetRenderTarget

extern SDL_DECLSPEC SDL_Texture * SDLCALL SDL_GetRenderTarget(SDL_Renderer *renderer)

Implementation

Pointer<SdlTexture> getTarget() {
  return sdlGetRenderTarget(this);
}