getScale method
Get the drawing scale for the current target.
\param renderer the rendering context. \param scaleX a pointer filled in with the horizontal scaling factor. \param scaleY a pointer filled in with the vertical scaling factor. \returns true on success or false on failure; call SDL_GetError() for more information.
\threadsafety This function should only be called on the main thread.
\since This function is available since SDL 3.1.3.
\sa SDL_SetRenderScale
extern SDL_DECLSPEC bool SDLCALL SDL_GetRenderScale(SDL_Renderer *renderer, float *scaleX, float *scaleY)
Implementation
math.Point<double> getScale() {
var scaleXPointer = calloc<Float>();
var scaleYPointer = calloc<Float>();
sdlGetRenderScale(this, scaleXPointer, scaleYPointer);
var result = math.Point<double>(scaleXPointer.value, scaleYPointer.value);
calloc.free(scaleXPointer);
calloc.free(scaleYPointer);
return result;
}