From fe265c69948837afb5a18983f8c51ce7b16fe761 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hatvani=20Tam=C3=A1s?= Date: Wed, 1 Apr 2026 18:24:46 +0200 Subject: [PATCH] is active toggle on layer this will be used to turn off a layer but we do not want to delete them from the layer stack --- SakuraCore/src/Layer.cpp | 2 +- SakuraCore/src/Layer.h | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/SakuraCore/src/Layer.cpp b/SakuraCore/src/Layer.cpp index a95d9d5..285a987 100644 --- a/SakuraCore/src/Layer.cpp +++ b/SakuraCore/src/Layer.cpp @@ -2,5 +2,5 @@ #include namespace SakuraVNE { -Layer::Layer(const std::string &name) : m_LayerName(name) {} +Layer::Layer(const std::string &name) : m_LayerName(name), isActive(true) {} } // namespace SakuraVNE diff --git a/SakuraCore/src/Layer.h b/SakuraCore/src/Layer.h index f760526..f310fa3 100644 --- a/SakuraCore/src/Layer.h +++ b/SakuraCore/src/Layer.h @@ -10,7 +10,7 @@ public: virtual ~Layer() = default; virtual void OnFrame(Uint64 timestamp) {} - virtual void OnEvent() {} + virtual void OnEvent(/*Event &e*/) {} virtual void OnAttach() {} virtual void OnDetach() {} virtual void OnImGuiRender() {} @@ -19,5 +19,6 @@ public: protected: std::string m_LayerName; + bool isActive; }; } // namespace SakuraVNE