Surface.blitScaled - multiple declarations

Function Surface.blitScaled

Wraps SDL_BlitScaled which blits/draws a dsdl2.Surface on top of the dsdl2.Surface at a specific point as the top-left point of the drawn dsdl2.Surface with scaling

void blitScaled (
  const(Surface) source,
  Rect destRect
) @trusted;

Parameters

NameDescription
source dsdl2.Surface to blit/draw
destRect dsdl2.Rect of where source should be drawn (squeezes/stretches to the dimensions as well)

Function Surface.blitScaled

Wraps SDL_BlitScaled which blits/draws a dsdl2.Surface on top of the dsdl2.Surface at a specific point as the top-left point of the drawn dsdl2.Surface with scaling

void blitScaled (
  const(Surface) source,
  Rect destRect,
  Rect srcRect
) @trusted;

Parameters

NameDescription
source dsdl2.Surface to blit/draw
destRect dsdl2.Rect of where source should be drawn (squeezes/stretches to the dimensions as well)
srcRect the clipping rect of source specifying which part is drawn