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

  1. void blit(Surface source, Point destPoint)
  2. void blit(Surface source, Point destPoint, Rect srcRect)
    class Surface
    @trusted
    void
    blit

Parameters

source Surface

dsdl2.Surface to blit/draw

destPoint Point

top-left dsdl2.Point of where source is drawn

srcRect Rect

the clipping rect of source specifying which part is drawn

Meta