ZeroZero Game Engine
v0.0
A 3D game engine using Vulkan & Jolt
|
Global application configuration, given to the Application object at startup via the Z0_APP macro
Public Attributes | |
string | appName = "MyApp" |
Name to display in the Window title bar. | |
filesystem::path | appDir = "." |
Directory to search for resources and compiled shaders. | |
LayerCollisionTable | layerCollisionTable = {} |
Layers vs Layers collision table. | |
WindowMode | windowMode = WindowMode::WINDOWED |
State of the display Window. | |
uint32_t | windowWidth = 1280 |
Width in pixels of the display Window. | |
uint32_t | windowHeight = 720 |
Height in pixels of the display Window. | |
int32_t | windowMonitor = 0 |
Monitor index to display the Window. | |
string | defaultFontName = "DefaultFont.ttf" |
Default font name, the file must exist in the path. | |
uint32_t | defaultFontSize = 20 |
Default font size. See the Font class for the details. | |
int | loggingMode = LOGGING_MODE_NONE |
Where to log message using log() | |
LogLevel | logLevelMin = LogLevel::INFO |
Monitor index for the logging Window. | |
MSAA | msaa = MSAA::X4 |
MSAA samples. Note that MSAA is mandatory. | |
VSyncMode | vSyncMode = VSyncMode::MAILBOX |
Presentation mode. | |
DepthBufferFormat | depthBufferFormat = DepthBufferFormat::B24 |
Depth frame buffer format. | |
bool | useDepthPrepass = true |
Use a depth pre-pass in the main renderer. | |
NormalBufferFormat | normalBufferFormat = NormalBufferFormat::B16 |
Normal frame buffer format. | |
bool | useNormalPrepass = false |
Use a normal pre-pass in the main renderer. | |
vec3 | clearColor = WINDOW_CLEAR_COLOR |
Window clear color. | |
uint32_t | framesInFlight = 3 |
Number of simultaneous frames during rendering. | |
uint32_t | cascadedShadowMapSize = 4096 |
Size (width & height) in pixels of the cascaded (directional lights) shadow maps. | |
uint32_t | pointLightShadowMapSize = 1024 |
Size (width & height) in pixels of the omni & spotlights shadow maps. | |
bool | debug = false |
Enable the debug renderer. | |
DebugConfig | debugConfig = {} |
Configuration for the debug rendering. | |
float | meshSimplifyThreshold = 1.0f |
Threshold for meshes simplification with meshoptimizer (only works with one surface meshes), 1.0f -> no simplification. | |
string | sceneVertexShader = "default" |
Name for the default vertex shader for the scene renderer. | |
string | sceneFragmentShader = "default" |
Name for the default fragment shader for the scene renderer. | |