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

Method GameViewportToScreen

Source/Engine/Engine/Screen.cpp:88–96  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

86}
87
88Float2 Screen::GameViewportToScreen(const Float2& viewportPos)
89{
90#if USE_EDITOR
91 return Editor::Managed->GameViewportToScreen(viewportPos);
92#else
93 auto win = Engine::MainWindow;
94 return win ? win->ClientToScreen(viewportPos * win->GetDpiScale()) : Float2::Minimum;
95#endif
96}
97
98bool Screen::GetCursorVisible()
99{

Callers 1

SetCursorLockMethod · 0.45

Calls 2

GetDpiScaleMethod · 0.80
ClientToScreenMethod · 0.45

Tested by

no test coverage detected