Skip to content

Struct Engine::ApplicationConfig

ClassList > Engine > ApplicationConfig

Configuration passed to the engine when starting. Contains window settings and target framerate.

  • #include <Application.hpp>

Public Attributes

Type Name
std::vector< std::string > args
Command-line arguments (excluding argv[0]). Registered as LaunchOptions and published to Lua as the globalarg , so scripts can branch on flags such as server / client.
std::function< void(Registry &)> customRender = nullptr
bool customRenderHandlesDrawing = false
When true, customRender is responsible for its own BeginDrawing/ EndDrawing calls. The engine will not draw after customRender. Use this when customRender manages its own rendering (e.g. Openfront).
bool headless = false
When true, runs without a window or rendering. Systems and networking still tick. Used by the editor's headless-server launch.
bool maximized = false
std::function< void()> onUI = nullptr
int targetFPS = 60
int virtualHeight = 0
Virtual canvas height. 0 keeps the same height as the OS window.
int virtualWidth = 0
Virtual canvas width. 0 keeps the same width as the OS window.
int windowHeight = 720
std::string windowTitle = "Game Engine"
int windowWidth = 1280

Public Attributes Documentation

variable args

Command-line arguments (excluding argv[0]). Registered as LaunchOptions and published to Lua as the globalarg , so scripts can branch on flags such as server / client.

std::vector<std::string> Engine::ApplicationConfig::args;


variable customRender

std::function<void(Registry&)> Engine::ApplicationConfig::customRender;

variable customRenderHandlesDrawing

When true, customRender is responsible for its own BeginDrawing/ EndDrawing calls. The engine will not draw after customRender. Use this when customRender manages its own rendering (e.g. Openfront).

bool Engine::ApplicationConfig::customRenderHandlesDrawing;


variable headless

When true, runs without a window or rendering. Systems and networking still tick. Used by the editor's headless-server launch.

bool Engine::ApplicationConfig::headless;


variable maximized

bool Engine::ApplicationConfig::maximized;

variable onUI

std::function<void()> Engine::ApplicationConfig::onUI;

variable targetFPS

int Engine::ApplicationConfig::targetFPS;

variable virtualHeight

Virtual canvas height. 0 keeps the same height as the OS window.

int Engine::ApplicationConfig::virtualHeight;


variable virtualWidth

Virtual canvas width. 0 keeps the same width as the OS window.

int Engine::ApplicationConfig::virtualWidth;


variable windowHeight

int Engine::ApplicationConfig::windowHeight;

variable windowTitle

std::string Engine::ApplicationConfig::windowTitle;

variable windowWidth

int Engine::ApplicationConfig::windowWidth;


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