Class Engine::Application¶
ClassList > Engine > Application
The core framework of the engine. Owns the Registry and the Game Loop.
#include <Application.hpp>
Public Functions¶
| Type | Name |
|---|---|
| Application (const ApplicationConfig & config) |
|
| RenderTexture2D & | GetGameTexture () Render texture of the virtual game canvas. |
| Registry & | GetRegistry () Gives Game Developers access to the ECS Registry to add components and systems. |
| void | Quit () Allows any system to shut down the engine. |
| void | Run () Starts the main engine loop. Blocks until the application closes. |
| ~Application () |
Public Functions Documentation¶
function Application¶
function GetGameTexture¶
Render texture of the virtual game canvas.
Returns:
The canvas texture owned by the VirtualResolution resource.
Exception:
- ErrorEcs if that resource is missing.
function GetRegistry¶
Gives Game Developers access to the ECS Registry to add components and systems.
function Quit¶
Allows any system to shut down the engine.
function Run¶
Starts the main engine loop. Blocks until the application closes.
function ~Application¶
The documentation for this class was generated from the following file /home/runner/work/r-type/r-type/Engine/include/Core/Application.hpp