Renderer.logicalToWindow

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

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

Parameters

fxy float[2]

float[2] logical coordinate of X and Y

Return Value

Type: int[2]

mapped int[2] window coordinate of X and Y

Meta