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 float
s 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
Name | Description |
---|---|
newScale | array of 2 float s for the new X and Y scales |
Throws
dsdl2
if failed to set the scale