Elevate Engine 1
Loading...
Searching...
No Matches
SceneLayer.h
Go to the documentation of this file.
1#pragma once
2
5
6namespace Elevate
7{
8 class RendererAPI;
9 class Camera;
10
15 class SceneLayer : public Layer
16 {
17 public:
18 SceneLayer(std::shared_ptr<Scene> scene)
19 : m_scene(scene) { }
20
21 //virtual void OnAttach() override;
22 virtual void OnDetach() override;
23 virtual void OnUpdate() override;
24 virtual void OnRender() override;
25 void OnRender(Camera* cam);
26 //virtual void OnImGuiRender() override;
27 virtual void OnEvent(Event& event) override;
28
29 protected:
30 std::shared_ptr<Scene> m_scene;
31 };
32}
Simple layer thats contains a single scene and take care of all loading/unloading update and renderin...
Definition SceneLayer.h:16
virtual void OnRender() override
SceneLayer(std::shared_ptr< Scene > scene)
Definition SceneLayer.h:18
virtual void OnEvent(Event &event) override
virtual void OnUpdate() override
virtual void OnDetach() override
Definition SceneLayer.cpp:8
std::shared_ptr< Scene > m_scene
Definition SceneLayer.h:30