Renderer.copyEx - multiple declarations

Function Renderer.copyEx

Acts as SDL_RenderCopyEx(renderer, texture, NULL, destRect, angle, NULL, flip) which copies the entire texture to destRect at the renderer's target with certain angle and flipping

void copyEx (
  const(Texture) texture,
  Rect destRect,
  double angle,
  bool flippedHorizontally = false,
  bool flippedVertically = false
) @trusted;

Parameters

NameDescription
texture dsdl2.Texture to be copied/drawn
destRect destination dsdl2.Rect in the target for the texture to be drawn to
angle angle in degrees to rotate the texture counterclockwise
flippedHorizontally true to flip the texture horizontally, otherwise false
flippedVertically true to flip the texture vertically, otherwise false

Throws

dsdl2.SDLException if texture failed to draw

Function Renderer.copyEx

Acts as SDL_RenderCopyEx(renderer, texture, srcRect, destRect, angle, NULL, flip) which copies the entire texture to destRect at the renderer's target with certain angle and flipping

void copyEx (
  const(Texture) texture,
  Rect destRect,
  double angle,
  Rect srcRect,
  bool flippedHorizontally = false,
  bool flippedVertically = false
) @trusted;

Parameters

NameDescription
texture dsdl2.Texture to be copied/drawn
destRect destination dsdl2.Rect in the target for the texture to be drawn to
angle angle in degrees to rotate the texture counterclockwise
srcRect source dsdl2.Rect which clips the given texture
flippedHorizontally true to flip the texture horizontally, otherwise false
flippedVertically true to flip the texture vertically, otherwise false

Throws

dsdl2.SDLException if texture failed to draw

Function Renderer.copyEx

Acts as SDL_RenderCopyEx(renderer, texture, NULL, destRect, angle, center, flip) which copies the entire texture to destRect at the renderer's target with certain angle and flipping

void copyEx (
  const(Texture) texture,
  Rect destRect,
  double angle,
  Point center,
  bool flippedHorizontally = false,
  bool flippedVertically = false
) @trusted;

Parameters

NameDescription
texture dsdl2.Texture to be copied/drawn
destRect destination dsdl2.Rect in the target for the texture to be drawn to
angle angle in degrees to rotate the texture counterclockwise
center pivot dsdl2.Point of the texture for rotation
flippedHorizontally true to flip the texture horizontally, otherwise false
flippedVertically true to flip the texture vertically, otherwise false

Throws

dsdl2.SDLException if texture failed to draw

Function Renderer.copyEx

Wraps SDL_RenderCopyEx which copies the entire texture to destRect at the renderer's target with certain angle and flipping

void copyEx (
  const(Texture) texture,
  Rect destRect,
  double angle,
  Rect srcRect,
  Point center,
  bool flippedHorizontally = false,
  bool flippedVertically = false
) @trusted;

Parameters

NameDescription
texture dsdl2.Texture to be copied/drawn
destRect destination dsdl2.Rect in the target for the texture to be drawn to
angle angle in degrees to rotate the texture counterclockwise
srcRect source dsdl2.Rect which clips the given texture
center pivot dsdl2.Point of the texture for rotation
flippedHorizontally true to flip the texture horizontally, otherwise false
flippedVertically true to flip the texture vertically, otherwise false

Throws

dsdl2.SDLException if texture failed to draw

Function Renderer.copyEx

Acts as SDL_RenderCopyExF(renderer, texture, NULL, destRect, angle, NULL, flip) (from SDL 2.0.10) which copies the entire texture to destRect at the renderer's target with certain angle and flipping

void copyEx (
  const(Texture) texture,
  FRect destRect,
  double angle,
  bool flippedHorizontally = false,
  bool flippedVertically = false
) @trusted;

Parameters

NameDescription
texture dsdl2.Texture to be copied/drawn
destRect destination dsdl2.FRect in the target for the texture to be drawn to
angle angle in degrees to rotate the texture counterclockwise
flippedHorizontally true to flip the texture horizontally, otherwise false
flippedVertically true to flip the texture vertically, otherwise false

Throws

dsdl2.SDLException if texture failed to draw

Function Renderer.copyEx

Acts as SDL_RenderCopyExF(renderer, texture, srcRect, destRect, angle, NULL, flip) (from SDL 2.0.10) which copies the entire texture to destRect at the renderer's target with certain angle and flipping

void copyEx (
  const(Texture) texture,
  FRect destRect,
  double angle,
  Rect srcRect,
  bool flippedHorizontally = false,
  bool flippedVertically = false
) @trusted;

Parameters

NameDescription
texture dsdl2.Texture to be copied/drawn
destRect destination dsdl2.FRect in the target for the texture to be drawn to
angle angle in degrees to rotate the texture counterclockwise
srcRect source dsdl2.Rect which clips the given texture
flippedHorizontally true to flip the texture horizontally, otherwise false
flippedVertically true to flip the texture vertically, otherwise false

Throws

dsdl2.SDLException if texture failed to draw

Function Renderer.copyEx

Acts as SDL_RenderCopyExF(renderer, texture, NULL, destRect, angle, center, flip) (from SDL 2.0.10) which copies the entire texture to destRect at the renderer's target with certain angle and flipping

void copyEx (
  const(Texture) texture,
  FRect destRect,
  double angle,
  FPoint center,
  bool flippedHorizontally = false,
  bool flippedVertically = false
) @trusted;

Parameters

NameDescription
texture dsdl2.Texture to be copied/drawn
destRect destination dsdl2.FRect in the target for the texture to be drawn to
angle angle in degrees to rotate the texture counterclockwise
center pivot dsdl2.FPoint of the texture for rotation
flippedHorizontally true to flip the texture horizontally, otherwise false
flippedVertically true to flip the texture vertically, otherwise false

Throws

dsdl2.SDLException if texture failed to draw

Function Renderer.copyEx

Wraps SDL_RenderCopyExF (from SDL 2.0.10) which copies the entire texture to destRect at the renderer's target with certain angle and flipping

void copyEx (
  const(Texture) texture,
  FRect destRect,
  double angle,
  Rect srcRect,
  FPoint center,
  bool flippedHorizontally = false,
  bool flippedVertically = false
) @trusted;

Parameters

NameDescription
texture dsdl2.Texture to be copied/drawn
destRect destination dsdl2.FRect in the target for the texture to be drawn to
angle angle in degrees to rotate the texture counterclockwise
srcRect source dsdl2.Rect which clips the given texture
center pivot dsdl2.FPoint of the texture for rotation
flippedHorizontally true to flip the texture horizontally, otherwise false
flippedVertically true to flip the texture vertically, otherwise false

Throws

dsdl2.SDLException if texture failed to draw