| 844 | } |
| 845 | |
| 846 | void 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 | |
| 866 | Vec2F MainInterface::cursorWorldPosition() const { |
| 867 | return m_worldPainter->camera().screenToWorld(m_cursorScreenPos); |
no test coverage detected