| 11 | #include <OvGame/Debug/FrameInfo.h> |
| 12 | |
| 13 | OvGame::Debug::FrameInfo::FrameInfo(OvWindowing::Window& p_window) : |
| 14 | m_window(p_window), |
| 15 | m_batchText(CreateWidget<OvUI::Widgets::Texts::TextColored>("", OvUI::Types::Color::Yellow)), |
| 16 | m_instanceText(CreateWidget<OvUI::Widgets::Texts::TextColored>("", OvUI::Types::Color::Yellow)), |
| 17 | m_polyText(CreateWidget<OvUI::Widgets::Texts::TextColored>("", OvUI::Types::Color::Yellow)), |
| 18 | m_vertexText(CreateWidget<OvUI::Widgets::Texts::TextColored>("", OvUI::Types::Color::Yellow)) |
| 19 | { |
| 20 | m_defaultHorizontalAlignment = OvUI::Settings::EHorizontalAlignment::LEFT; |
| 21 | m_defaultVerticalAlignment = OvUI::Settings::EVerticalAlignment::BOTTOM; |
| 22 | m_defaultPosition.x = static_cast<float>(p_window.GetSize().first) - 10.f; |
| 23 | m_defaultPosition.y = static_cast<float>(p_window.GetSize().second) - 10.f; |
| 24 | } |
| 25 | |
| 26 | void OvGame::Debug::FrameInfo::Update(const OvRendering::Data::FrameInfo& p_frameInfo) |
| 27 | { |