#include "config_state.h" #include "rendering/renderer.h" #include "core/application.h" #include namespace Donut { void ConfigState::on_enter() { DONUT_INFO("Entering Config State"); } void ConfigState::on_exit() { DONUT_INFO("Exiting Config State"); } void ConfigState::on_update(float delta_time) { } void ConfigState::on_render() { Renderer::set_clear_color({ 0.1f, 0.1f, 0.2f, 1.0f }); Renderer::clear(); } void ConfigState::on_event(Event& event) { } void ConfigState::on_im_ui_render() { ImGui::Begin("Configuration"); ImGui::Text("Configuration State"); if (ImGui::Button("Start Simulation")) Application::get().get_state_manager().switch_to_state("Simulation"); ImGui::End(); } }