8 class EditorLayer :
public Layer
16 virtual void OnUpdate(
float deltaTime)
override;
19 void OpenScene(
const std::string& objFileName);
24 void InputPolling(
float deltaTime);
26 void TentativeTrigger();
30 std::shared_ptr<Karma::Shader> m_ModelShader;
31 std::shared_ptr<Karma::VertexArray> m_ModelVertexArray;
32 std::shared_ptr<Karma::Material> m_ModelMaterial;
33 std::shared_ptr<Karma::Texture> m_ModelTexture;
35 std::shared_ptr<Karma::PerspectiveCamera> m_EditorCamera;
36 std::shared_ptr<Karma::Scene> m_EditorScene;
38 float cameraTranslationSpeed = 1.0f;
39 float cameraRotationSpeed = 80.0f;
43 uint32_t m_ActorCounter;
This file contains the main() routine with multiplatform support.
virtual void OnDetach() override
A function called on Layer when the LayerStack is destroyed.
Definition EditorLayer.cpp:103
virtual void OnAttach() override
A function called on Layer when the Layer is pushed or OverLay is pushed.
Definition EditorLayer.cpp:86
virtual void KarmaGuiRender(float deltaTime) override
Function called in each game loop, specifically for rendering purposes.
Definition EditorLayer.cpp:114
virtual void OnEvent(Event &event) override
For dispatching Events specific to the Layer.
Definition EditorLayer.cpp:183
virtual void OnUpdate(float deltaTime) override
Function called in each game loop.
Definition EditorLayer.cpp:108
The base class of all the events for Karma.
Definition Event.h:90
Event triggered when the keyboard key is pressed.
Definition KeyEvent.h:53
Layer(const std::string &name="Layer")
A constructor.
Definition Layer.cpp:5
The World is the top level object representing a map or a sandbox in which Actors and Components will...
Definition World.h:150