Function Renderer.windowToLogical
Wraps SDL_RenderWindowToLogical
(from SDL 2.0.18) which maps window coordinates to logical coordinates
float[2] windowToLogical
(
int[2] xy
) @trusted const;
Parameters
Name | Description |
---|---|
xy | int[2] window coordinate of X and Y |
Returns
mapped float[2]
logical coordinate of X and Y