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

Function ViewportPaintColumn

src/openrct2/interface/Viewport.cpp:845–874  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

843 }
844
845 static void ViewportPaintColumn(PaintSession& session)
846 {
847 PROFILED_FUNCTION();
848
849 if (session.ViewFlags
850 & (VIEWPORT_FLAG_HIDE_VERTICAL | VIEWPORT_FLAG_HIDE_BASE | VIEWPORT_FLAG_UNDERGROUND_INSIDE
851 | VIEWPORT_FLAG_CLIP_VIEW)
852 && (~session.ViewFlags & VIEWPORT_FLAG_TRANSPARENT_BACKGROUND))
853 {
854 PaletteIndex colour = PaletteIndex::pi10;
855 if (session.ViewFlags & VIEWPORT_FLAG_HIDE_ENTITIES)
856 {
857 colour = PaletteIndex::transparent;
858 }
859 GfxClear(session.rt, colour);
860 }
861
862 PaintDrawStructs(session);
863
864 if (Config::Get().general.renderWeatherGloom && !gTrackDesignSaveMode
865 && !(session.ViewFlags & VIEWPORT_FLAG_HIDE_ENTITIES) && !(session.ViewFlags & VIEWPORT_FLAG_HIGHLIGHT_PATH_ISSUES))
866 {
867 ViewportPaintWeatherGloom(session.rt);
868 }
869
870 if (session.PSStringHead != nullptr)
871 {
872 PaintDrawMoneyStructs(session.rt, session.PSStringHead);
873 }
874 }
875
876 /**
877 *

Callers 1

ViewportPaintFunction · 0.85

Calls 4

GfxClearFunction · 0.85
PaintDrawStructsFunction · 0.85
PaintDrawMoneyStructsFunction · 0.85

Tested by

no test coverage detected