Renderer.copy - multiple declarations

Function Renderer.copy

Acts as SDL_RenderCopy(renderer, texture, NULL, destRect) which copies the entire texture to destRect at the renderer's target

void copy (
  const(Texture) texture,
  Rect destRect
) @trusted;

Parameters

NameDescription
texture dsdl.Texture to be copied/drawn
destRect destination dsdl.Rect in the target for the texture to be drawn to

Throws

dsdl.SDLException if texture failed to draw

Function Renderer.copy

Wraps SDL_RenderCopy which copies a part of the texture at srcRect to destRect at the renderer's target

void copy (
  const(Texture) texture,
  Rect destRect,
  Rect srcRect
) @trusted;

Parameters

NameDescription
texture dsdl.Texture to be copied/drawn
destRect destination dsdl.Rect in the target for the texture to be drawn to
srcRect source dsdl.Rect which clips the given texture

Throws

dsdl.SDLException if texture failed to draw

Function Renderer.copy

Acts as SDL_RenderCopyF(renderer, texture, NULL, destRect) (from SDL 2.0.10) which copies the entire texture to destRect at the renderer's target

void copy (
  const(Texture) texture,
  FRect destRect
) @trusted;

Parameters

NameDescription
texture dsdl.Texture to be copied/drawn
destRect destination dsdl.FRect in the target for the texture to be drawn to

Throws

dsdl.SDLException if texture failed to draw

Function Renderer.copy

Wraps SDL_RenderCopyF (from SDL 2.0.10) which copies a part of the texture at srcRect to destRect at the renderer's target

void copy (
  const(Texture) texture,
  FRect destRect,
  Rect srcRect
) @trusted;

Parameters

NameDescription
texture dsdl.Texture to be copied/drawn
destRect destination dsdl.FRect in the target for the texture to be drawn to
srcRect source dsdl.Rect which clips the given texture

Throws

dsdl.SDLException if texture failed to draw