#include "simulation_state.h" #include "rendering/renderer.h" #include "core/application.h" #include namespace Donut { void SimulationState::on_enter() { DONUT_INFO("Entering Simulation State"); } void SimulationState::on_exit() { DONUT_INFO("Exiting Simulation State"); } void SimulationState::on_update(float delta_time) { } void SimulationState::on_render() { Renderer::set_clear_color({ 0.0f, 0.0f, 0.0f, 1.0f }); Renderer::clear(); } void SimulationState::on_event(Event& event) { } void SimulationState::on_im_ui_render() { ImGui::Begin("Simulation Controls"); ImGui::Text("Simulation State"); if (ImGui::Button("Back to Config")) Application::get().get_state_manager().switch_to_state("Config"); ImGui::Separator(); ImGui::Text("Simulation Info:"); ImGui::Text("FPS: %.1f", ImGui::GetIO().Framerate); ImGui::Text("Frame Time: %.3f ms", 1000.0f / ImGui::GetIO().Framerate); ImGui::End(); } };