MCPcopy Create free account
hub / github.com/OpenApoc/OpenApoc / render

Method render

game/ui/base/basestage.cpp:87–100  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

85}
86
87void BaseStage::render()
88{
89 // Highlight selected base
90 if (currentView != nullptr)
91 {
92 auto viewBase = currentView->getData<Base>();
93 if (state->current_base == viewBase)
94 {
95 Vec2<int> pos = currentView->getLocationOnScreen() - 2;
96 Vec2<int> size = currentView->Size + 4;
97 fw().renderer->drawRect(pos, size, COLOUR_RED);
98 }
99 }
100}
101
102}; // namespace OpenApoc

Callers

nothing calls this directly

Calls 2

getLocationOnScreenMethod · 0.80
drawRectMethod · 0.45

Tested by

no test coverage detected