Base class for application layers that can be pushed/popped from the LayerStack. More...
#include <Layer.h>
Public Member Functions | |
Layer (const std::string &debugName="Layer") | |
virtual void | OnAttach () |
virtual void | OnDetach () |
virtual void | OnUpdate (Timestep ts) |
virtual void | OnImGuiRender () |
virtual void | OnEvent (Events::Event &event) |
const std::string & | GetName () const |
Protected Attributes | |
std::string | m_DebugName |
Base class for application layers that can be pushed/popped from the LayerStack.
Layers are a fundamental part of the engine's architecture, allowing for:
Layers are processed in order, with later layers potentially overriding earlier ones. Each layer can handle events and choose whether to pass them to layers below.