MCPcopy Create free account
hub / github.com/Overload-Technologies/Overload / FrameInfo

Method FrameInfo

Sources/OvGame/src/OvGame/Debug/FrameInfo.cpp:13–24  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

11#include <OvGame/Debug/FrameInfo.h>
12
13OvGame::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
26void OvGame::Debug::FrameInfo::Update(const OvRendering::Data::FrameInfo& p_frameInfo)
27{

Callers

nothing calls this directly

Calls 1

GetSizeMethod · 0.45

Tested by

no test coverage detected