Rendering Engine 0.2.9
Modular Graphics Rendering Engine | v0.2.9
rendering_engine::AppConfig Struct Reference

Basic application settings loaded from a configuration file. More...

#include <utility.hpp>

Public Attributes

std::string appName
 Name of the application. More...
 
bool isFullScreen = false
 Whether the application should start in full-screen mode. More...
 
float screenWidth = 800.0f
 Desired window width in pixels (ignored in full-screen mode). More...
 
float screenHeight = 600.0f
 Desired window height in pixels (ignored in full-screen mode). More...
 
std::vector< std::string > textScripts {"Latin"}
 Unicode scripts to preload for text rendering. More...
 
std::vector< int > fontSizePreload {10}
 Font sizes to preload at startup. More...
 
std::string logLevel {"Info"}
 Logging verbosity level ("Error", "Warning", "Info", "Debug"). More...
 
bool useSmoothedFPS = true
 Enable FPS smoothing and frame pacing behavior. More...
 
float targetFPS = 60.0f
 Target frame rate (0 = uncapped). More...
 
bool showStatsOverlay = true
 Enable on-screen statistics overlay. More...
 

Detailed Description

Basic application settings loaded from a configuration file.

This structure represents a minimal configuration schema for applications built using the Rendering Engine. Values are typically read from Config/app_config.json at startup and applied during window creation.

Definition at line 26 of file utility.hpp.

Member Data Documentation

◆ appName

std::string rendering_engine::AppConfig::appName

Name of the application.

Definition at line 29 of file utility.hpp.

◆ fontSizePreload

std::vector<int> rendering_engine::AppConfig::fontSizePreload {10}

Font sizes to preload at startup.

Definition at line 39 of file utility.hpp.

◆ isFullScreen

bool rendering_engine::AppConfig::isFullScreen = false

Whether the application should start in full-screen mode.

Definition at line 31 of file utility.hpp.

◆ logLevel

std::string rendering_engine::AppConfig::logLevel {"Info"}

Logging verbosity level ("Error", "Warning", "Info", "Debug").

Definition at line 41 of file utility.hpp.

◆ screenHeight

float rendering_engine::AppConfig::screenHeight = 600.0f

Desired window height in pixels (ignored in full-screen mode).

Definition at line 35 of file utility.hpp.

◆ screenWidth

float rendering_engine::AppConfig::screenWidth = 800.0f

Desired window width in pixels (ignored in full-screen mode).

Definition at line 33 of file utility.hpp.

◆ showStatsOverlay

bool rendering_engine::AppConfig::showStatsOverlay = true

Enable on-screen statistics overlay.

Definition at line 47 of file utility.hpp.

◆ targetFPS

float rendering_engine::AppConfig::targetFPS = 60.0f

Target frame rate (0 = uncapped).

Definition at line 45 of file utility.hpp.

◆ textScripts

std::vector<std::string> rendering_engine::AppConfig::textScripts {"Latin"}

Unicode scripts to preload for text rendering.

Definition at line 37 of file utility.hpp.

◆ useSmoothedFPS

bool rendering_engine::AppConfig::useSmoothedFPS = true

Enable FPS smoothing and frame pacing behavior.

Definition at line 43 of file utility.hpp.


The documentation for this struct was generated from the following file: