Renderer.windowToLogical

Wraps SDL_RenderWindowToLogical (from SDL 2.0.18) which maps window coordinates to logical coordinates

class Renderer
const @trusted
static if(sdlSupport >= SDLSupport.v2_0_18)
float[2]
windowToLogical
(
int[2] xy
)

Parameters

xy int[2]

int[2] window coordinate of X and Y

Return Value

Type: float[2]

mapped float[2] logical coordinate of X and Y

Meta