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 dsdl2.Texture to be copied/drawn
destRect destination dsdl2.Rect in the target for the texture to be drawn to

Throws

dsdl2.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 dsdl2.Texture to be copied/drawn
destRect destination dsdl2.Rect in the target for the texture to be drawn to
srcRect source dsdl2.Rect which clips the given texture

Throws

dsdl2.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 dsdl2.Texture to be copied/drawn
destRect destination dsdl2.FRect in the target for the texture to be drawn to

Throws

dsdl2.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 dsdl2.Texture to be copied/drawn
destRect destination dsdl2.FRect in the target for the texture to be drawn to
srcRect source dsdl2.Rect which clips the given texture

Throws

dsdl2.SDLException if texture failed to draw