#include <ImGuiLayer.hpp>
Definition at line 7 of file ImGuiLayer.hpp.
◆ ImGuiLayer()
| Cori::Core::Internal::ImGuiLayer::ImGuiLayer |
( |
| ) |
|
◆ ~ImGuiLayer()
| Cori::Core::Internal::ImGuiLayer::~ImGuiLayer |
( |
| ) |
|
|
override |
◆ BindScene()
| std::expected< void, CoriError<> > Cori::Core::Layer::BindScene |
( |
const std::string & | name | ) |
|
|
inherited |
Binds the Scene to the Layer.
- Parameters
-
| name | Name of the Scene to bind. |
- Returns
- Expected object with void on success or CoriError<> on failure.
Definition at line 26 of file Layer.cpp.
◆ EndFrame()
| void Cori::Core::Internal::ImGuiLayer::EndFrame |
( |
| ) |
|
◆ GetName()
| std::string_view Cori::Core::Layer::GetName |
( |
| ) |
const |
|
inlinenodiscardinherited |
Returns the name of the Layer.
- Returns
- String view, so read only.
Definition at line 72 of file Layer.hpp.
◆ IsModal()
| bool Cori::Core::Layer::IsModal |
( |
| ) |
const |
|
inlinenodiscardinherited |
◆ OnAttach()
| void Cori::Core::Internal::ImGuiLayer::OnAttach |
( |
| ) |
|
|
overridevirtual |
◆ OnDetach()
| void Cori::Core::Internal::ImGuiLayer::OnDetach |
( |
| ) |
|
|
overridevirtual |
◆ OnEvent()
| void Cori::Core::Internal::ImGuiLayer::OnEvent |
( |
Event & | event | ) |
|
|
overridevirtual |
◆ OnImGuiRender()
| virtual void Cori::Core::Layer::OnImGuiRender |
( |
GameTimer & | gameTimer | ) |
|
|
inlinevirtualinherited |
Run every frame, this is the method where you do all the ImGui stuff.
- Parameters
-
Definition at line 46 of file Layer.hpp.
◆ OnTickUpdate()
| virtual void Cori::Core::Layer::OnTickUpdate |
( |
GameTimer & | gameTimer | ) |
|
|
inlinevirtualinherited |
Run every tick.
- Parameters
-
Definition at line 39 of file Layer.hpp.
◆ OnUpdate()
| virtual void Cori::Core::Layer::OnUpdate |
( |
GameTimer & | gameTimer | ) |
|
|
inlinevirtualinherited |
Run every frame.
- Parameters
-
Definition at line 33 of file Layer.hpp.
◆ SetModal()
| void Cori::Core::Layer::SetModal |
( |
const bool | state | ) |
|
|
inlineinherited |
Change the Layer modal state.
- Parameters
-
| state | Desired state. @detail When Layer is in a modal state all events that are passed to it will be considered handled and will not be passed further down the LayerStack.
Also when a layer is modal any layer below it will not be updated, both tick update and frame update, it effectively stops any logic execution in the layers below it. |
Definition at line 61 of file Layer.hpp.
◆ StartFrame()
| void Cori::Core::Internal::ImGuiLayer::StartFrame |
( |
| ) |
|
◆ UnbindScene()
| std::expected< void, CoriError<> > Cori::Core::Layer::UnbindScene |
( |
| ) |
|
|
inherited |
Unbinds the Scene from the Layer.
- Returns
- Expected object with void on success or CoriError<> on failure.
Definition at line 47 of file Layer.cpp.
◆ ActiveScene
A SceneHandle to the Scene that is currently bound.
Definition at line 90 of file Layer.hpp.
◆ m_DebugImGuiRenderer
| Physics::DebugImguiRenderer Cori::Core::Layer::m_DebugImGuiRenderer |
|
inlinestaticinherited |
The documentation for this class was generated from the following files: