Karma Engine
Loading...
Searching...
No Matches
LayerStack.h
1#pragma once
2
3#include "krpch.h"
4
5#include "Karma/Layer.h"
6
7namespace Karma
8{
9 class KARMA_API LayerStack
10 {
11 public:
12 LayerStack();
14
15 void PushLayer(Layer* layer);
16 void PushOverlay(Layer* overlay);
17 void PopLayer(Layer* layer);
18 void PopOverlay(Layer* layer);
19
20 std::vector<Layer*>::iterator begin()
21 {
22 return m_Layers.begin();
23 }
24 std::vector<Layer*>::iterator end()
25 {
26 return m_Layers.end();
27 }
28
29 private:
30 std::vector<Layer*> m_Layers;
31 unsigned int m_LayerInsertIndex = 0;
32 };
33}
Definition LayerStack.h:10
Definition Layer.h:11