MCPcopy Create free account
hub / github.com/OpenRCT2/OpenRCT2 / WindowGetViewport

Function WindowGetViewport

src/openrct2/interface/Window.cpp:897–905  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

895 }
896
897 Viewport* WindowGetViewport(WindowBase* w)
898 {
899 if (w == nullptr)
900 {
901 return nullptr;
902 }
903
904 return w->viewport;
905 }
906
907 // TODO: declared in WindowManager.h; move when refactors continue
908 Ui::IWindowManager* Ui::GetWindowManager()

Callers 12

GetGiantViewportFunction · 0.85
ScreenshotGiantFunction · 0.85
ConsoleCommandGetFunction · 0.85
DrawWeatherFunction · 0.85
crashMethod · 0.85
GetUnzoomedViewportsFunction · 0.85
CreateMethod · 0.85
SetMainViewMethod · 0.85
UpdateMethod · 0.85
DisplayMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected