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

Method render

source/frontend/StarMainInterface.cpp:846–864  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

844}
845
846void MainInterface::render() {
847 if (m_disableHud)
848 return;
849
850 m_guiContext->clearTextStyle();
851 renderBreath();
852 renderMessages();
853 renderMonsterHealthBar();
854 renderSpecialDamageBar();
855 renderMainBar();
856 renderDebug();
857
858 RectI screenRect = RectI::withSize(Vec2I(), Vec2I(m_guiContext->windowSize()));
859 for (auto& pair : m_canvases)
860 pair.second->render(screenRect);
861
862 renderWindows();
863 renderCursor();
864}
865
866Vec2F MainInterface::cursorWorldPosition() const {
867 return m_worldPainter->camera().screenToWorld(m_cursorScreenPos);

Callers 3

renderInWorldElementsMethod · 0.45
renderWindowsMethod · 0.45
renderCursorMethod · 0.45

Calls 2

clearTextStyleMethod · 0.45
windowSizeMethod · 0.45

Tested by

no test coverage detected