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

Method Internal_GameViewportToScreen

Source/Editor/Editor.cs:1570–1582  ·  view source on GitHub ↗
(ref Float2 pos)

Source from the content-addressed store, hash-verified

1568 }
1569
1570 internal void Internal_GameViewportToScreen(ref Float2 pos)
1571 {
1572 var win = Windows.GameWin?.Root;
1573 if (win?.RootWindow is WindowRootControl root)
1574 {
1575 pos = Windows.GameWin.Viewport.PointToScreen(pos);
1576 pos = Float2.Round(pos);
1577 }
1578 else
1579 {
1580 pos = Float2.Minimum;
1581 }
1582 }
1583
1584 internal void Internal_GetGameWinPtr(bool forceGet, out IntPtr result)
1585 {

Callers

nothing calls this directly

Calls 2

PointToScreenMethod · 0.45
RoundMethod · 0.45

Tested by

no test coverage detected