![]() |
nCine 2025.06.r503-ff15d8d
A cross-platform 2D game engine
|
The class storing initialization settings for an nCine application. More...
#include <AppConfiguration.h>
Public Member Functions | |
AppConfiguration () | |
Default constructor setting the defaults. | |
const nctl::String & | dataPath () const |
nctl::String & | dataPath () |
bool | glCoreProfile () const |
bool | glForwardCompatible () const |
unsigned int | glMajorVersion () const |
unsigned int | glMinorVersion () const |
float | profileTextUpdateTime () const |
int | argc () const |
const char * | argv (int index) const |
void | readEnvVariables () |
Reads the environment variables that can override the user ones. | |
void | logEnvVariables () const |
Logs the environment variables that have overridden the user ones. | |
Public Attributes | |
nctl::String | logFile |
The path for the log file. | |
ILogger::LogLevel | consoleLogLevel |
The logging level for messages printed on the console. | |
ILogger::LogLevel | fileLogLevel |
The logging level for messages written in the log file. | |
float | frameTimerLogInterval |
The interval for frame timer accumulation average and log. | |
Vector2i | resolution |
The window size or the resolution of the closest video mode if going full screen. | |
float | refreshRate |
The refresh rate of the screen mode used to go in full screen. | |
Vector2i | windowPosition |
The window position coordinates in the virtual screen made of all the connected monitors. | |
bool | fullScreen |
The flag is true if the application is going to be in full screen mode. | |
bool | resizable |
The flag is true if the window is going to be resizable. | |
bool | windowScaling |
The flag is true if the window size is automatically scaled according to the display factor. | |
unsigned int | frameLimit |
The maximum number of frames to render per second or 0 for no limit. | |
nctl::String | windowTitle |
The window title. | |
nctl::String | windowIconFilename |
The window icon filename. | |
bool | useBufferMapping |
The flag is true if mapping is used to update OpenGL buffers. | |
bool | deferShaderQueries |
The flag is true when error checking and introspection of shader programs are deferred to first use. | |
unsigned int | fixedBatchSize |
Fixed size of render commands to be collected for batching on Emscripten and ANGLE. | |
bool | useBinaryShaderCache |
The flag is true if the shader cache is enabled to load and save binary shader programs. | |
nctl::String | shaderCacheDirname |
The directory name (not the complete path) for the binary shaders cache. | |
bool | compileBatchedShadersTwice |
The flag is true if, on devices with UBOs smaller than 64 KB, batched shaders will be compiled twice to identify their maximum batch size. | |
unsigned long | vboSize |
The maximum size in bytes for each VBO collecting geometry data. | |
unsigned long | iboSize |
The maximum size in bytes for each IBO collecting index data. | |
unsigned int | vaoPoolSize |
The maximum size for the pool of VAOs. | |
unsigned int | renderCommandPoolSize |
The initial size for the pool of render commands. | |
unsigned int | outputAudioFrequency |
The output frequency of the audio system. | |
unsigned int | monoAudioSources |
The number of mono audio sources. | |
unsigned int | stereoAudioSources |
The number of stereo audio sources. | |
bool | withDebugOverlay |
The flag is true if the debug overlay is enabled. | |
bool | withAudio |
The flag is true if the audio subsystem is enabled. | |
bool | withThreads |
The flag is true if the threading subsystem is enabled. | |
bool | withScenegraph |
The flag is true if the scenegraph based rendering is enabled. | |
bool | withVSync |
The flag is true if the vertical synchronization is enabled. | |
bool | withGlDebugContext |
The flag is true if the OpenGL debug context is enabled. | |
bool | withConsoleColors |
The flag is true if console log messages should use colors. | |
Static Public Attributes | |
static const int | WindowPositionIgnore = 2147483647 |
Friends | |
class | PCApplication |
The class storing initialization settings for an nCine application.
|
inline |
const char * ncine::AppConfiguration::argv | ( | int | index | ) | const |
nctl::String & ncine::AppConfiguration::dataPath | ( | ) |
Allows to set the value of the static field FileSystem::dataPath_
.
const nctl::String & ncine::AppConfiguration::dataPath | ( | ) | const |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
bool ncine::AppConfiguration::compileBatchedShadersTwice |
The flag is true
if, on devices with UBOs smaller than 64 KB, batched shaders will be compiled twice to identify their maximum batch size.
bool ncine::AppConfiguration::deferShaderQueries |
The flag is true
when error checking and introspection of shader programs are deferred to first use.
unsigned int ncine::AppConfiguration::fixedBatchSize |
Fixed size of render commands to be collected for batching on Emscripten and ANGLE.
unsigned int ncine::AppConfiguration::monoAudioSources |
The number of mono audio sources.
unsigned int ncine::AppConfiguration::outputAudioFrequency |
The output frequency of the audio system.
float ncine::AppConfiguration::refreshRate |
The refresh rate of the screen mode used to go in full screen.
Vector2i ncine::AppConfiguration::resolution |
The window size or the resolution of the closest video mode if going full screen.
x
or y
are zero or negative, the application will go in full screen at the current screen resolution. unsigned int ncine::AppConfiguration::stereoAudioSources |
The number of stereo audio sources.
bool ncine::AppConfiguration::useBinaryShaderCache |
The flag is true
if the shader cache is enabled to load and save binary shader programs.
true
, the functionality might still not be supported by the OpenGL context. Vector2i ncine::AppConfiguration::windowPosition |
The window position coordinates in the virtual screen made of all the connected monitors.
WindowPositionIgnore
value can be used in either or both dimensions when a specific position is not needed.