Elevate Engine 1
Loading...
Searching...
No Matches
Layer.h
Go to the documentation of this file.
1#pragma once
2
3#include <string>
4
5namespace Elevate
6{
7 class Event;
8
9 class Layer
10 {
11 public:
12 Layer(const std::string& name = "Layer");
13 virtual ~Layer();
14
15 virtual void OnAttach() {}
16 virtual void OnDetach() {}
17 virtual void OnUpdate() {}
18 virtual void OnRender() {}
19 virtual void OnImGuiRender() {}
20 virtual void OnEvent(Event& event) {}
21
22 inline const std::string& GetName() const { return m_DebugName; }
23
24 protected:
25 std::string m_DebugName;
26 };
27}
std::string m_DebugName
Definition Layer.h:25
virtual void OnDetach()
Definition Layer.h:16
virtual void OnAttach()
Definition Layer.h:15
virtual void OnEvent(Event &event)
Definition Layer.h:20
virtual void OnImGuiRender()
Definition Layer.h:19
virtual void OnRender()
Definition Layer.h:18
virtual ~Layer()
Definition Layer.cpp:8
const std::string & GetName() const
Definition Layer.h:22
virtual void OnUpdate()
Definition Layer.h:17