From 641db1c86bf624527173b0323bd3c832338c3662 Mon Sep 17 00:00:00 2001 From: hachem Date: Thu, 14 Aug 2025 00:02:01 +0200 Subject: [add]: State manager --- src/States/ConfigState.cpp | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 src/States/ConfigState.cpp (limited to 'src/States/ConfigState.cpp') 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) + { + } +} -- cgit v1.3