Muto 0.0.1
Cross-Platform Application Template
GitHub Repo | Muto Updates | Muto's Author
Loading...
Searching...
No Matches
Muto::OpenGLImGuiLayer Class Reference

#include <OpenGLImGuiLayer.h>

Inheritance diagram for Muto::OpenGLImGuiLayer:
Muto::ImGuiLayer Muto::Layer

Public Member Functions

virtual void Begin () override
 
virtual void End () override
 
virtual void OnAttach () override
 Called when the layer is attached to the application.
 
virtual void OnDetach () override
 Called when the layer is detached from the application.
 
virtual void OnEvent (Event &e) override
 Called when an event is dispatched to the layer.
 
virtual void OnImGuiRender () override
 Called when the layer should render its ImGui components.
 
 OpenGLImGuiLayer ()
 
virtual void SetBlockEvents (bool block)
 
virtual void SetDarkThemeColors () override
 
 ~OpenGLImGuiLayer ()
 
- Public Member Functions inherited from Muto::ImGuiLayer
 ImGuiLayer ()
 
 ~ImGuiLayer ()
 
- Public Member Functions inherited from Muto::Layer
const std::string & GetName () const
 Retrieves the name of the layer for debugging purposes.
 
 Layer (const std::string &name="Layer")
 Constructs a Layer with an optional name for debugging purposes.
 
virtual void OnRender ()
 Called when the layer should render its contents.
 
virtual void OnUpdate (Timestep ts)
 Called every frame to update the layer with the given timestep.
 
virtual ~Layer ()
 

Additional Inherited Members

- Protected Attributes inherited from Muto::ImGuiLayer
bool m_BlockEvents = true
 
float m_Time = 0.0f
 
- Protected Attributes inherited from Muto::Layer
std::string m_DebugName
 The name of the layer assigned at creation, used for debugging.
 

Constructor & Destructor Documentation

◆ OpenGLImGuiLayer()

Muto::OpenGLImGuiLayer::OpenGLImGuiLayer ( )
20 : ImGuiLayer()
21 {
22 }
ImGuiLayer()
Definition ImGuiLayer.cpp:22

References Muto::ImGuiLayer::ImGuiLayer().

◆ ~OpenGLImGuiLayer()

Muto::OpenGLImGuiLayer::~OpenGLImGuiLayer ( )
25 {
26 }

Member Function Documentation

◆ Begin()

void Muto::OpenGLImGuiLayer::Begin ( )
overridevirtual

Reimplemented from Muto::ImGuiLayer.

59 {
61 }
virtual void Begin()
Definition ImGuiLayer.cpp:102

References Muto::ImGuiLayer::Begin().

◆ End()

void Muto::OpenGLImGuiLayer::End ( )
overridevirtual

Reimplemented from Muto::ImGuiLayer.

64 {
66 }
virtual void End()
Definition ImGuiLayer.cpp:111

References Muto::ImGuiLayer::End().

◆ OnAttach()

void Muto::OpenGLImGuiLayer::OnAttach ( )
overridevirtual

Called when the layer is attached to the application.

Todo:
: Remove to openGL specific ImGui Implementation
Todo:
: Remove to openGL specific ImGui Implementation

Reimplemented from Muto::ImGuiLayer.

29 {
31
32
33
34 }
virtual void OnAttach() override
Called when the layer is attached to the application.
Definition ImGuiLayer.cpp:30

References Muto::ImGuiLayer::OnAttach().

◆ OnDetach()

void Muto::OpenGLImGuiLayer::OnDetach ( )
overridevirtual

Called when the layer is detached from the application.

Todo:
: Remove to openGL specific ImGui Implementation
Todo:
: Remove to openGL specific ImGui Implementation

Reimplemented from Muto::ImGuiLayer.

37 {
39
40
41
42 }
virtual void OnDetach() override
Called when the layer is detached from the application.
Definition ImGuiLayer.cpp:76

References Muto::ImGuiLayer::OnDetach().

◆ OnEvent()

void Muto::OpenGLImGuiLayer::OnEvent ( Event &  event)
overridevirtual

Called when an event is dispatched to the layer.

Parameters
eventThe event being dispatched.

Reimplemented from Muto::ImGuiLayer.

52 {
54
55
56 }
virtual void OnEvent(Event &e) override
Called when an event is dispatched to the layer.
Definition ImGuiLayer.cpp:93
constexpr Scope< T > CreateScope(Args &&... args)
Creates a Scope (unique_ptr) for the given type and constructor arguments.
Definition Defines_Macros.h:51

References Muto::ImGuiLayer::OnEvent().

◆ OnImGuiRender()

void Muto::OpenGLImGuiLayer::OnImGuiRender ( )
overridevirtual

Called when the layer should render its ImGui components.

Reimplemented from Muto::ImGuiLayer.

45 {
47
48
49 }
virtual void OnImGuiRender() override
Called when the layer should render its ImGui components.
Definition ImGuiLayer.cpp:88

References Muto::ImGuiLayer::OnImGuiRender().

◆ SetBlockEvents()

virtual void Muto::OpenGLImGuiLayer::SetBlockEvents ( bool  block)
inlinevirtual

Reimplemented from Muto::ImGuiLayer.

bool m_BlockEvents
Definition ImGuiLayer.h:32

References Muto::ImGuiLayer::m_BlockEvents.

◆ SetDarkThemeColors()

void Muto::OpenGLImGuiLayer::SetDarkThemeColors ( )
overridevirtual

Reimplemented from Muto::ImGuiLayer.

69 {
71 }
virtual void SetDarkThemeColors()
Definition ImGuiLayer.cpp:127

References Muto::ImGuiLayer::SetDarkThemeColors().


The documentation for this class was generated from the following files: