diff options
| author | hachem <im@hachem.wtf> | 2025-08-14 00:02:01 +0200 |
|---|---|---|
| committer | hachem <im@hachem.wtf> | 2025-08-14 00:02:01 +0200 |
| commit | 1b251bd174527951eec220ecbcb7eca89328e5b8 (patch) | |
| tree | c47632a340b4cbdd97812f8c92798fc36146558c /src/states/config_state.cpp | |
| parent | 1ac0f136629ce4046a5f6529cf3d1e51e96df408 (diff) | |
feat: state manager
Diffstat (limited to 'src/states/config_state.cpp')
| -rw-r--r-- | src/states/config_state.cpp | 29 |
1 files changed, 29 insertions, 0 deletions
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) + { + } +} |
