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
This commit is contained in:
2026-04-01 18:24:46 +02:00
parent fb06a38c83
commit fe265c6994
2 changed files with 3 additions and 2 deletions

View File

@@ -2,5 +2,5 @@
#include <string>
namespace SakuraVNE {
Layer::Layer(const std::string &name) : m_LayerName(name) {}
Layer::Layer(const std::string &name) : m_LayerName(name), isActive(true) {}
} // namespace SakuraVNE

View File

@@ -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