|
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.
|
|
virtual void | OnEvent (Karma::Event &e) override |
| For dispatching Events specific to the Layer.
|
|
void | KarmaAppInputPolling (float deltaTime) |
|
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.
|
|
| 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()
virtual void ExampleLayer::KarmaGuiRender |
( |
float | deltaTime | ) |
|
|
inlineoverridevirtual |
Function called in each game loop, specifically for rendering purposes.
This is part of KarmaGui rendering sequence, thus different from OnUpdate().
- See also
- Application::Run()
- Since
- Karma 1.0.0
Implements Karma::Layer.
◆ OnAttach()
virtual void ExampleLayer::OnAttach |
( |
| ) |
|
|
inlineoverridevirtual |
A function called on Layer when the Layer is pushed or OverLay is pushed.
- See also
- Application::PushLayer, Application::PushOverlay
- Since
- Karma 1.0.0
Implements Karma::Layer.
◆ OnDetach()
virtual void ExampleLayer::OnDetach |
( |
| ) |
|
|
inlineoverridevirtual |
A function called on Layer when the LayerStack is destroyed.
- See also
- LayerStack::~LayerStack()
- Since
- Karma 1.0.0
Implements Karma::Layer.
◆ OnEvent()
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()
virtual void ExampleLayer::OnUpdate |
( |
float | deltaTime | ) |
|
|
inlineoverridevirtual |
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 file:
- Application/src/KarmaApp.cpp