Encapsulates the core engine lifecycle, main render loop, window, Vulkan renderer, and systems.
More...
#include <Application.hpp>
Encapsulates the core engine lifecycle, main render loop, window, Vulkan renderer, and systems.
◆ Application()
Construct a new Application.
- Parameters
-
| config | The application start configuration. |
◆ ~Application()
| Engine::Application::~Application |
( |
| ) |
|
|
virtual |
Destroy the Application and release Vulkan/window resources.
◆ buildGame()
| int Engine::Application::buildGame |
( |
const std::string & | projectPath, |
|
|
const std::string & | outPath ) |
|
private |
◆ cleanupEngine()
| void Engine::Application::cleanupEngine |
( |
| ) |
|
|
private |
◆ getEditorMode()
◆ getRenderer()
◆ initEngine()
| void Engine::Application::initEngine |
( |
| ) |
|
|
private |
◆ loadConfig()
| void Engine::Application::loadConfig |
( |
| ) |
|
|
private |
◆ onShutdown()
| virtual void Engine::Application::onShutdown |
( |
| ) |
|
|
inlinevirtual |
Called during application shutdown.
◆ onStart()
| virtual void Engine::Application::onStart |
( |
| ) |
|
|
inlinevirtual |
Called upon initialization. Override to register custom components and load startup scenes.
◆ onUpdate()
| virtual void Engine::Application::onUpdate |
( |
float | dt | ) |
|
|
inlinevirtual |
Called each frame for custom update logic.
- Parameters
-
◆ quit()
| void Engine::Application::quit |
( |
| ) |
|
Stops the application execution.
◆ registerComponent()
template<typename T>
| void Engine::Application::registerComponent |
( |
const std::string & | componentName | ) |
|
|
inline |
Templated method to register game-specific components to the serialization registry.
- Template Parameters
-
| T | Component structure/class type. |
- Parameters
-
| componentName | Key name string in JSON files. |
◆ run()
| void Engine::Application::run |
( |
| ) |
|
Boots and runs the main loop of the application.
◆ config
Active application config values.
◆ editorMode
Shared editor toggle and navigation states.
◆ editorUI
| std::unique_ptr<EditorUI> Engine::Application::editorUI |
|
private |
Editor graphical interface overlay.
◆ pluginManager
| std::unique_ptr<PluginManager> Engine::Application::pluginManager |
|
private |
Pointer to the dynamic plugin manager.
◆ registry
Registry instance for ECS entity-component database.
◆ renderer
◆ renderSystem
| std::shared_ptr<RenderSystem> Engine::Application::renderSystem |
|
private |
Reference to default rendering system.
◆ running
| bool Engine::Application::running = false |
|
private |
◆ sceneManager
Scene Manager coordinates scene changes and loading.
◆ systemManager
System Manager driving sequential system update loops.
◆ uiSystem
| std::shared_ptr<UISystem> Engine::Application::uiSystem |
|
private |
◆ window
| GLFWwindow* Engine::Application::window = nullptr |
|
private |
The documentation for this class was generated from the following files: