Renderer.copy

Acts as SDL_RenderCopyF(renderer, texture, NULL, destRect) (from SDL 2.0.10) which copies the entire texture 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)
    class Renderer
    @trusted
    static if(sdlSupport >= SDLSupport.v2_0_10)
    void
    copy
  4. void copy(Texture texture, FRect destRect, Rect srcRect)

Parameters

texture Texture

dsdl2.Texture to be copied/drawn

destRect FRect

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

Throws

dsdl2.SDLException if texture failed to draw

Meta