|
virtual void | OnAttach () override |
| A function called on Layer when the Layer is pushed or OverLay is pushed.
|
|
virtual void | OnDetach () override |
| A function called on Layer when the LayerStack is destroyed.
|
|
virtual void | OnUpdate (float deltaTime) override |
| Function called in each game loop.
|
|
virtual void | KarmaGuiRender (float deltaTime) override |
| Function called in each game loop, specifically for rendering purposes.
|
|
void | OpenScene (const std::string &objFileName) |
|
virtual void | OnEvent (Event &event) override |
| For dispatching Events specific to the Layer.
|
|
bool | OnMouseButtonPressed (MouseButtonPressedEvent &e) |
|
bool | OnMouseButtonReleased (MouseButtonReleasedEvent &e) |
|
bool | OnKeyPressed (KeyPressedEvent &e) |
|
void | InputPolling (float deltaTime) |
|
void | TentativeTrigger () |
|
void | IterateActors () |
|
| Layer (const std::string &name="Layer") |
| A constructor.
|
|
virtual | ~Layer () |
| A destructor.
|
|
const std::string & | GetName () const |
| Getter for the name of the Layer (debugging purposes).
|
|
◆ KarmaGuiRender()
void Karma::EditorLayer::KarmaGuiRender |
( |
float | deltaTime | ) |
|
|
overridevirtual |
◆ OnAttach()
void Karma::EditorLayer::OnAttach |
( |
| ) |
|
|
overridevirtual |
◆ OnDetach()
void Karma::EditorLayer::OnDetach |
( |
| ) |
|
|
overridevirtual |
◆ OnEvent()
void Karma::EditorLayer::OnEvent |
( |
Event & | event | ) |
|
|
overridevirtual |
For dispatching Events specific to the Layer.
- Note
- GLFW calls the Application::OnEvent which further calls the OnEvent function in the subsequent layers and, depending on m_Handled, the depth of the call chain (measured in the sense of for-loop, upon the ordered layers) is determined.
- Since
- Karma 1.0.0
Reimplemented from Karma::Layer.
◆ OnUpdate()
void Karma::EditorLayer::OnUpdate |
( |
float | deltaTime | ) |
|
|
overridevirtual |
Function called in each game loop.
- Parameters
-
deltaTime | The time step (or interval) gap between two consecutive calls (previous single loop iteration time) |
- See also
- Application::Run()
- Since
- Karma 1.0.0
Implements Karma::Layer.
The documentation for this class was generated from the following files:
- Pranjal/Source/Public/EditorLayer.h
- Pranjal/Source/Private/EditorLayer.cpp