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>
|
#include <string>
|
||||||
|
|
||||||
namespace SakuraVNE {
|
namespace SakuraVNE {
|
||||||
Layer::Layer(const std::string &name) : m_LayerName(name) {}
|
Layer::Layer(const std::string &name) : m_LayerName(name), isActive(true) {}
|
||||||
} // namespace SakuraVNE
|
} // namespace SakuraVNE
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ public:
|
|||||||
virtual ~Layer() = default;
|
virtual ~Layer() = default;
|
||||||
|
|
||||||
virtual void OnFrame(Uint64 timestamp) {}
|
virtual void OnFrame(Uint64 timestamp) {}
|
||||||
virtual void OnEvent() {}
|
virtual void OnEvent(/*Event &e*/) {}
|
||||||
virtual void OnAttach() {}
|
virtual void OnAttach() {}
|
||||||
virtual void OnDetach() {}
|
virtual void OnDetach() {}
|
||||||
virtual void OnImGuiRender() {}
|
virtual void OnImGuiRender() {}
|
||||||
@@ -19,5 +19,6 @@ public:
|
|||||||
|
|
||||||
protected:
|
protected:
|
||||||
std::string m_LayerName;
|
std::string m_LayerName;
|
||||||
|
bool isActive;
|
||||||
};
|
};
|
||||||
} // namespace SakuraVNE
|
} // namespace SakuraVNE
|
||||||
|
|||||||
Reference in New Issue
Block a user