SDL_GetRenderScale

Get the drawing scale for the current target.

extern (C) nothrow @nogc extern
bool
SDL_GetRenderScale

Parameters

renderer SDL_Renderer*

The rendering context.

scaleX float*

A pointer filled in with the horizontal scaling factor.

scaleY float*

A pointer filled in with the vertical scaling factor.

Return Value

Type: bool

true on success or false on failure; call SDL_GetError for more information.

Threadsafety: This function should only be called on the main thread.

See Also

Meta