MCPcopy Create free account
hub / github.com/JeanPhilippeKernel/RendererEngine / Update

Method Update

ZEngine/src/ImguiLayer.cpp:67–75  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

65 }
66
67 void ImguiLayer::Update(Core::TimeStep dt) {
68 ImGuiIO& io = ImGui::GetIO();
69 if (dt > 0.0f) {
70 io.DeltaTime = dt;
71 }
72 for (const auto& component : m_ui_components) {
73 component->Update(dt);
74 }
75 }
76
77 void ImguiLayer::AddUIComponent(const Ref<Components::UI::UIComponent>& component) {
78 m_ui_components.push_back(component);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected