Skip to content

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

Engine::Application::Application (
    const ApplicationConfig & config
) 

function GetGameTexture

Render texture of the virtual game canvas.

inline RenderTexture2D & Engine::Application::GetGameTexture () 

Returns:

The canvas texture owned by the VirtualResolution resource.

Exception:


function GetRegistry

Gives Game Developers access to the ECS Registry to add components and systems.

inline Registry & Engine::Application::GetRegistry () 


function Quit

Allows any system to shut down the engine.

inline void Engine::Application::Quit () 


function Run

Starts the main engine loop. Blocks until the application closes.

void Engine::Application::Run () 


function ~Application

Engine::Application::~Application () 


The documentation for this class was generated from the following file /home/runner/work/r-type/r-type/Engine/include/Core/Application.hpp