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

  1. void copy(Texture texture, Rect destRect)
  2. void copy(Texture texture, Rect destRect, Rect srcRect)
  3. void copy(Texture texture, FRect destRect)
  4. void copy(Texture texture, FRect destRect, Rect srcRect)
    class Renderer
    @trusted
    static if(sdlSupport >= SDLSupport.v2_0_10)
    void
    copy

Parameters

texture Texture

dsdl2.Texture to be copied/drawn

destRect FRect

destination dsdl2.FRect in the target for the texture to be drawn to

srcRect Rect

source dsdl2.Rect which clips the given texture

Throws

dsdl2.SDLException if texture failed to draw

Meta