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 | 641db1c86bf624527173b0323bd3c832338c3662 (patch) | |
| tree | 188fe41c2351b8b426b8904ea23faec68f4144a4 /src/States/ConfigState.cpp | |
| parent | 6afeab30f84bc19fc4fc3dd842e7b093d4c5a9fa (diff) | |
[add]: State manager
Diffstat (limited to 'src/States/ConfigState.cpp')
| -rw-r--r-- | src/States/ConfigState.cpp | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/src/States/ConfigState.cpp b/src/States/ConfigState.cpp new file mode 100644 index 0000000..5d2e0aa --- /dev/null +++ b/src/States/ConfigState.cpp @@ -0,0 +1,29 @@ +#include "ConfigState.h" +#include "Rendering/Renderer.h" + +namespace Donut +{ + void ConfigState::OnEnter() + { + DONUT_INFO("Entering Config State"); + } + + void ConfigState::OnExit() + { + DONUT_INFO("Exiting Config State"); + } + + void ConfigState::OnUpdate(float deltaTime) + { + } + + void ConfigState::OnRender() + { + Renderer::SetClearColor({ 0.1f, 0.1f, 0.2f, 1.0f }); + Renderer::Clear(); + } + + void ConfigState::OnEvent(Event& event) + { + } +} |
