|
MetaImGUI 1.0.0
ImGui Application Template for C++20
|
Main application class that orchestrates the application lifecycle. More...
#include <Application.h>
Public Member Functions | |
| Application () | |
| ~Application () | |
| Application (const Application &)=delete | |
| Application & | operator= (const Application &)=delete |
| Application (Application &&)=delete | |
| Application & | operator= (Application &&)=delete |
| bool | Initialize () |
| Initialize the application and all subsystems. | |
| void | Run () |
| Run the main application loop. | |
| void | Shutdown () |
| Shutdown the application and cleanup resources. | |
| bool | ShouldClose () const |
| Check if the application should close. | |
Main application class that orchestrates the application lifecycle.
The Application class follows the Single Responsibility Principle by delegating window management to WindowManager and UI rendering to UIRenderer. It focuses on high-level orchestration, state management, and business logic.
The Application class coordinates all major subsystems:
Definition at line 69 of file Application.h.
| MetaImGUI::Application::Application | ( | ) |
Definition at line 42 of file Application.cpp.
| MetaImGUI::Application::~Application | ( | ) |
Definition at line 44 of file Application.cpp.
References Shutdown().
|
delete |
|
delete |
| bool MetaImGUI::Application::Initialize | ( | ) |
Initialize the application and all subsystems.
Initializes all components in the correct order:
Definition at line 48 of file Application.cpp.
References MetaImGUI::Info, MetaImGUI::Logger::Initialize(), MetaImGUI::Localization::Instance(), MetaImGUI::Logger::Instance(), MetaImGUI::Localization::LoadTranslations(), LOG_DEBUG, LOG_ERROR, LOG_INFO, and MetaImGUI::Localization::SetLanguage().
Referenced by main().
|
delete |
|
delete |
| void MetaImGUI::Application::Run | ( | ) |
Run the main application loop.
Enters the main event loop which continues until the window is closed. The loop processes:
Definition at line 202 of file Application.cpp.
References ShouldClose().
Referenced by main().
| bool MetaImGUI::Application::ShouldClose | ( | ) | const |
Check if the application should close.
Definition at line 251 of file Application.cpp.
Referenced by Run().
| void MetaImGUI::Application::Shutdown | ( | ) |
Shutdown the application and cleanup resources.
Performs graceful shutdown of all subsystems in reverse order:
Definition at line 209 of file Application.cpp.
References MetaImGUI::Localization::Instance(), MetaImGUI::Logger::Instance(), LOG_INFO, and MetaImGUI::Logger::Shutdown().
Referenced by main(), and ~Application().