Renderer.scale

Wraps SDL_RenderSetScale which sets the drawing scale of the renderer target

  1. float[2] scale()
  2. void scale(float[2] newScale)
    class Renderer
    @property @trusted
    void
    scale
    (
    float[2] newScale
    )

Parameters

newScale float[2]

array of 2 floats for the new X and Y scales

Throws

dsdl2.SDLException if failed to set the scale

Meta