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

Method GetSize

Source/Engine/Engine/Screen.cpp:57–65  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

55}
56
57Float2 Screen::GetSize()
58{
59#if USE_EDITOR
60 return Editor::Managed->GetGameWindowSize();
61#else
62 auto win = Engine::MainWindow;
63 return win ? win->GetClientSize() : Float2::Zero;
64#endif
65}
66
67void Screen::SetSize(const Float2& value)
68{

Callers 15

RenderMethod · 0.45
RenderMethod · 0.45
WriteCascadeObjectsMethod · 0.45
RenderMethod · 0.45
setupResourcesMethod · 0.45
DrawSkyMethod · 0.45
RenderMethod · 0.45
RasterizeActorMethod · 0.45
BindMethod · 0.45
RenderMethod · 0.45
BindMethod · 0.45
DrawInstanceMethod · 0.45

Calls 2

GetGameWindowSizeMethod · 0.80
GetClientSizeMethod · 0.45

Tested by

no test coverage detected