|
Vesper 0.5.1
Vesper is short form for the Latin word for "Bat", as Vesper is designed to be small, lightweight, and easily handle things like particles and flocking behaviors in accordance with the nature of bats. \n It is meant to be a particle simulation, VFX editor, and CAN be used secondarily as a small game engine. GitHub | Vesper Updates | Creator |
#include <ImGuiLayer.h>
Public Member Functions | |
| ImGuiLayer () | |
| ~ImGuiLayer () | |
| 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 | OnImGuiRender () override |
| Called when the layer should render its ImGui components. | |
| virtual void | OnEvent (Event &e) override |
| Called when an event is dispatched to the layer. | |
| virtual void | Begin () |
| virtual void | End () |
| virtual void | SetBlockEvents (bool block) |
| virtual void | SetDarkThemeColors () |
| Public Member Functions inherited from Vesper::Layer | |
| Layer (const std::string &name="Layer") | |
| Constructs a Layer with an optional name for debugging purposes. | |
| virtual | ~Layer () |
| virtual void | OnUpdate (Timestep ts) |
| Called every frame to update the layer with the given timestep. | |
| virtual void | OnRender () |
| Called when the layer should render its contents. | |
| const std::string & | GetName () const |
| Retrieves the name of the layer for debugging purposes. | |
Protected Attributes | |
| bool | m_BlockEvents = true |
| float | m_Time = 0.0f |
| Protected Attributes inherited from Vesper::Layer | |
| std::string | m_DebugName |
| The name of the layer assigned at creation, used for debugging. | |
| Vesper::ImGuiLayer::ImGuiLayer | ( | ) |
Referenced by Vesper::Application::Application(), and Vesper::OpenGLImGuiLayer::OpenGLImGuiLayer().
| Vesper::ImGuiLayer::~ImGuiLayer | ( | ) |
|
virtual |
Reimplemented in Vesper::OpenGLImGuiLayer.
Referenced by Vesper::OpenGLImGuiLayer::Begin(), and Vesper::Application::Run().
|
virtual |
Reimplemented in Vesper::OpenGLImGuiLayer.
References Vesper::Application::Get(), Vesper::Window::GetHeight(), Vesper::Window::GetWidth(), and Vesper::Application::GetWindow().
Referenced by Vesper::OpenGLImGuiLayer::End(), and Vesper::Application::Run().
|
overridevirtual |
Called when the layer is attached to the application.
TODO: Remove to openGL specific
Reimplemented from Vesper::Layer.
Reimplemented in Vesper::OpenGLImGuiLayer.
References Vesper::Application::Get(), and SetDarkThemeColors().
Referenced by Vesper::OpenGLImGuiLayer::OnAttach().
|
overridevirtual |
Called when the layer is detached from the application.
TODO: Remove to openGL specific
Reimplemented from Vesper::Layer.
Reimplemented in Vesper::OpenGLImGuiLayer.
Referenced by Vesper::OpenGLImGuiLayer::OnDetach().
|
overridevirtual |
Called when an event is dispatched to the layer.
| event | The event being dispatched. |
Reimplemented from Vesper::Layer.
Reimplemented in Vesper::OpenGLImGuiLayer.
References Vesper::EventCategoryKeyboard, Vesper::EventCategoryMouse, Vesper::Event::Handled, Vesper::Event::IsInCategory(), and m_BlockEvents.
Referenced by Vesper::OpenGLImGuiLayer::OnEvent().
|
overridevirtual |
Called when the layer should render its ImGui components.
Reimplemented from Vesper::Layer.
Reimplemented in Vesper::OpenGLImGuiLayer.
Referenced by Vesper::OpenGLImGuiLayer::OnImGuiRender().
|
inlinevirtual |
Reimplemented in Vesper::OpenGLImGuiLayer.
References m_BlockEvents.
Referenced by Vesper::EditorLayer::OnImGuiRender().
|
virtual |
Reimplemented in Vesper::OpenGLImGuiLayer.
Referenced by OnAttach(), and Vesper::OpenGLImGuiLayer::SetDarkThemeColors().
|
protected |
Referenced by OnEvent(), SetBlockEvents(), and Vesper::OpenGLImGuiLayer::SetBlockEvents().
|
protected |