| 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); |
nothing calls this directly
no outgoing calls
no test coverage detected