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 global arg , so scripts can branch on flags such as server / client. |
| std::function< void(Registry &)> | customRender = nullptr |
| bool | customRenderHandlesDrawing = falseWhen 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 = falseWhen 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 = 0Virtual canvas height. 0 keeps the same height as the OS window. |
| int | virtualWidth = 0Virtual 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.
variable 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).
variable headless¶
When true, runs without a window or rendering. Systems and networking still tick. Used by the editor's headless-server launch.
variable maximized¶
variable onUI¶
variable targetFPS¶
variable virtualHeight¶
Virtual canvas height. 0 keeps the same height as the OS window.
variable virtualWidth¶
Virtual canvas width. 0 keeps the same width as the OS window.
variable windowHeight¶
variable windowTitle¶
variable windowWidth¶
The documentation for this class was generated from the following file /home/runner/work/r-type/r-type/Engine/include/Core/Application.hpp