From 1b251bd174527951eec220ecbcb7eca89328e5b8 Mon Sep 17 00:00:00 2001 From: hachem Date: Thu, 14 Aug 2025 00:02:01 +0200 Subject: feat: state manager --- src/states/config_state.cpp | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 src/states/config_state.cpp (limited to 'src/states/config_state.cpp') diff --git a/src/states/config_state.cpp b/src/states/config_state.cpp new file mode 100644 index 0000000..8ea33ca --- /dev/null +++ b/src/states/config_state.cpp @@ -0,0 +1,29 @@ +#include "config_state.h" +#include "rendering/renderer.h" + +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) + { + } +} -- cgit v1.3