Arnold Engine
 
Loading...
Searching...
No Matches
AE::Core::Layer Class Reference

Base class for application layers that can be pushed/popped from the LayerStack. More...

#include <Layer.h>

Inheritance diagram for AE::Core::Layer:
AE::Graphics::UI::ImGuiLayer

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
 

Detailed Description

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:

  • Modular organization of game/application logic
  • Independent update and render loops
  • Event handling with propagation control
  • ImGui integration for debugging/tools

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.


The documentation for this class was generated from the following files: