#include "DebugUI.hpp" #include "../Misc/Fonts.hpp" DebugUI::DebugUI() { gDbgFont.loadFromMemory(&_afont_monofonto_rg, FONTSIZE_MONOFONTO_RG); gDbgText.setFont(gDbgFont); gDbgText.setCharacterSize(14); gDbgText.setPosition(0, 0); gDbgText.setFillColor(sf::Color::White); } void DebugUI::UpdateDebugData(std::shared_ptr context) { gDbgText.setString("CPU Usage: XXX.X % (ticks: XXXX.X ms)\nFPS: XXX\nRAM Usage: XXXX.X MB"); context->draw(gDbgText); }