MCPcopy Create free account
hub / github.com/FlaxEngine/FlaxEngine / ScreenToClient

Method ScreenToClient

Source/Engine/Platform/SDL/SDLWindow.cpp:813–817  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

811}
812
813Float2 SDLWindow::ScreenToClient(const Float2& screenPos) const
814{
815 Int2 position = GetSDLWindowScreenPosition(this);
816 return screenPos - Float2(static_cast<float>(position.X), static_cast<float>(position.Y));
817}
818
819Float2 SDLWindow::ClientToScreen(const Float2& clientPos) const
820{

Callers 4

HandleEventInternalMethod · 0.45
SetMousePositionMethod · 0.45
DoDragDropX11Method · 0.45
X11EventHookMethod · 0.45

Calls 2

Float2Class · 0.85

Tested by

no test coverage detected