Manages the application lifecycle, configuration state, and UI integration (ImGui).
More...
#include <src/app/Application.h>
|
| | Application (GLFWwindow *pWindow) |
| | Constructs the application and associates it with a window.
|
| |
| | ~Application ()=default |
| |
| void | HandleUIToggle () |
| | Handles the UI toggle input (typically the Grave Accent / Tilde key).
|
| |
| void | BeginImGUIFrame () |
| | Starts a new ImGui frame context.
|
| |
| void | EndImGUIFrame () |
| | Ends the current ImGui frame and dispatches draw data to OpenGL.
|
| |
| void | InitImGUI () |
| | Initializes the ImGui context and configures the GLFW/OpenGL3 backends.
|
| |
| void | ShutDownImGUI () |
| | Shuts down ImGui, releasing all allocated backend and context resources.
|
| |
| void | RenderMetricsUI (App::InputHandler &inputHandler, const ChunkManager &objChunkManager, const RayHit &objRayHit) |
| | Renders the primary metrics and debugging UI panel.
|
| |
| void | RenderHelpUI () |
| | Renders the Help/Controls overlay window.
|
| |
Manages the application lifecycle, configuration state, and UI integration (ImGui).
- This class acts as the central hub for user interface rendering and global application settings such as threading limits, rendering modes, and physics steps.
◆ Application()
| Application::Application |
( |
GLFWwindow * |
pWindow | ) |
|
Constructs the application and associates it with a window.
- Parameters
-
| pWindow | Pointer to the active GLFW window context. |
◆ ~Application()
| Application::~Application |
( |
| ) |
|
|
default |
◆ BeginImGUIFrame()
| void Application::BeginImGUIFrame |
( |
| ) |
|
Starts a new ImGui frame context.
- Note
- Must be called before issuing any ImGui rendering commands in the main loop.
◆ EndImGUIFrame()
| void Application::EndImGUIFrame |
( |
| ) |
|
Ends the current ImGui frame and dispatches draw data to OpenGL.
◆ HandleUIToggle()
| void Application::HandleUIToggle |
( |
| ) |
|
Handles the UI toggle input (typically the Grave Accent / Tilde key).
- Switches the application between FPS mode (cursor captured and disabled) and UI mode (cursor freed for ImGui interaction).
◆ InitImGUI()
| void Application::InitImGUI |
( |
| ) |
|
Initializes the ImGui context and configures the GLFW/OpenGL3 backends.
◆ RenderHelpUI()
| void Application::RenderHelpUI |
( |
| ) |
|
Renders the Help/Controls overlay window.
◆ RenderMetricsUI()
Renders the primary metrics and debugging UI panel.
- Parameters
-
| inputHandler | Reference to the system input handler for displaying control states. |
| objChunkManager | Reference to the ChunkManager for displaying chunk/threading stats. |
| objRayHit | Reference to the current RayHit data for block targeting information. |
◆ ShutDownImGUI()
| void Application::ShutDownImGUI |
( |
| ) |
|
Shuts down ImGui, releasing all allocated backend and context resources.
◆ m_bEnableNeighborCulling
| bool Application::m_bEnableNeighborCulling = true |
◆ m_bEnableSIMD
| bool Application::m_bEnableSIMD = true |
◆ m_bEnableVsycn
| bool Application::m_bEnableVsycn = false |
◆ m_bFlyMode
| bool Application::m_bFlyMode = false |
◆ m_bFrustumCulling
| bool Application::m_bFrustumCulling = true |
◆ m_bHardwareCulling
| bool Application::m_bHardwareCulling = true |
◆ m_bShowHelpWindow
| bool Application::m_bShowHelpWindow = true |
◆ m_bShowMetricsPanel
| bool Application::m_bShowMetricsPanel = true |
◆ m_bWireframeMode
| bool Application::m_bWireframeMode = false |
◆ m_fAccumulator
| float Application::m_fAccumulator = 20.0f |
◆ m_fFlySpeed
| float Application::m_fFlySpeed = 200.0f |
◆ m_iActiveThreads
| int Application::m_iActiveThreads = 4 |
◆ m_iMainThreads
| int Application::m_iMainThreads = 1 |
◆ m_iMaxRenderingThreads
| int Application::m_iMaxRenderingThreads = 8 |
◆ m_iPhysicsSteps
| int Application::m_iPhysicsSteps = 0 |
◆ m_iThermalThreads
| int Application::m_iThermalThreads = 4 |
◆ m_pWindow
| GLFWwindow* Application::m_pWindow |
|
private |
The documentation for this class was generated from the following files: