Renderer.target - multiple declarations

Function Renderer.target

Wraps SDL_GetRenderTarget which gets the renderer's target

inout inout(Texture) target() @property @trusted;

Returns

null if the renderer uses the default target (usually the window), otherwise a dsdl2.Texture proxy to the the set texture target

Function Renderer.target

Wraps SDL_SetRenderTarget which sets the renderer's target

void target (
  Texture newTarget
) @property @trusted;

Parameters

NameDescription
newTarget null to set the target to be the default target (usually the window), or a valid target dsdl2.Texture as the texture target

Throws

dsdl2.SDLException if failed to set the renderer's target