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:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user