Surface.blit - multiple declarations

Function Surface.blit

Wraps SDL_BlitSurface 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 without any scaling done

void blit (
  const(Surface) source,
  Point destPoint,
  Rect srcRect
) @trusted;

Parameters

NameDescription
source dsdl2.Surface to blit/draw
destPoint top-left dsdl2.Point of where source is drawn
srcRect the clipping rect of source specifying which part is drawn

Function Surface.blit

Wraps SDL_BlitSurface 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 without any scaling done

void blit (
  const(Surface) source,
  Point destPoint
) @trusted;

Parameters

NameDescription
source dsdl2.Surface to blit/draw
destPoint top-left dsdl2.Point of where source is drawn