Renderer.scale - multiple declarations

Function Renderer.scale

Wraps SDL_RenderGetScale which gets the drawing scale of the renderer target

float[2] scale() @property @trusted const;

Returns

array of 2 floats for the X and Y scales

Function Renderer.scale

Wraps SDL_RenderSetScale which sets the drawing scale of the renderer target

void scale (
  float[2] newScale
) @property @trusted;

Parameters

NameDescription
newScale array of 2 floats for the new X and Y scales

Throws

dsdl2.SDLException if failed to set the scale