kanzi::ApplicationProperties Struct Reference

Configurable application properties. More...

#include <kanzi/core.ui/application/application_properties.hpp>

Public Types

enum  PerformanceInfoLevel { PerformanceInfoLevelDisabled, PerformanceInfoLevelFPS, PerformanceInfoLevelFull }
 Performance info level. More...
 

Public Member Functions

 ApplicationProperties ()
 Constructor. More...
 

Public Attributes

NativeWindowProperties defaultWindowProperties
 Default properties for application windows. More...
 
KzsSurfaceProperties defaultSurfaceProperties
 Default properties for the surfaces of the windows. More...
 
EventSourceProperties defaultEventSourceProperties
 Default properties for the event sources. More...
 
string binaryName
 Path to either the binary config file listing all .kzb files that are loaded to project, or a path to a single .kzb file. More...
 
vector< string > moduleNames
 List of modules to load. More...
 
int frameRateLimit
 Framerate limit as frames per second. More...
 
unsigned int loadingThreadCount
 The number of background threads that are used to load resources. More...
 
bool useMemoryMappedLoading
 Indicates whether memory mapping is used when loading KZB files. More...
 
unsigned int glyphCacheWidth
 Width of the textures created for glyph caches. More...
 
unsigned int glyphCacheHeight
 Height of the textures created for glyph caches. More...
 
PerformanceInfoLevel performanceInfoLevel
 Performance info display level. More...
 
bool functionCallProfilingEnabled
 Indicates whether the function call specific profiling enabled. More...
 
bool loadingTimeProfilingEnabled
 Indicates whether the loading time profiling enabled. More...
 
bool extensionOutputEnabled
 Indicates whether the list of graphics related extensions printed when launching the application. More...
 
bool propertyOutputEnabled
 Indicates whether the list of graphics related properties printed when launching the application, useful for debugging. More...
 
bool informationOutputEnabled
 Indicates whether the list of graphics related information printed when launching the application, useful for debugging. More...
 
bool graphicsLoggingEnabled
 Indicates whether graphics API calls should be logged, useful for debugging. More...
 
bool applicationIdleStateEnabled
 When an application is in the idle state, if there are no changes in the scene graph and rendering is not necessary, the application main loop waits for events, such as input. More...
 

Detailed Description

Configurable application properties.

Member Enumeration Documentation

Performance info level.

Enumerator
PerformanceInfoLevelDisabled 

Disabled.

PerformanceInfoLevelFPS 

Show FPS only.

PerformanceInfoLevelFull 

Full info.

Constructor & Destructor Documentation

kanzi::ApplicationProperties::ApplicationProperties ( )
explicit

Constructor.

Member Data Documentation

NativeWindowProperties kanzi::ApplicationProperties::defaultWindowProperties

Default properties for application windows.

KzsSurfaceProperties kanzi::ApplicationProperties::defaultSurfaceProperties

Default properties for the surfaces of the windows.

EventSourceProperties kanzi::ApplicationProperties::defaultEventSourceProperties

Default properties for the event sources.

string kanzi::ApplicationProperties::binaryName

Path to either the binary config file listing all .kzb files that are loaded to project, or a path to a single .kzb file.

vector<string> kanzi::ApplicationProperties::moduleNames

List of modules to load.

int kanzi::ApplicationProperties::frameRateLimit

Framerate limit as frames per second.

Set to 0 to disable limiting the framerate altogether.

unsigned int kanzi::ApplicationProperties::loadingThreadCount

The number of background threads that are used to load resources.

By default set to min(number of cores - 1, 3). Set to 0 to disable multithreaded loading and load everything in the main thread.

bool kanzi::ApplicationProperties::useMemoryMappedLoading

Indicates whether memory mapping is used when loading KZB files.

unsigned int kanzi::ApplicationProperties::glyphCacheWidth

Width of the textures created for glyph caches.

unsigned int kanzi::ApplicationProperties::glyphCacheHeight

Height of the textures created for glyph caches.

PerformanceInfoLevel kanzi::ApplicationProperties::performanceInfoLevel

Performance info display level.

bool kanzi::ApplicationProperties::functionCallProfilingEnabled

Indicates whether the function call specific profiling enabled.

When true, prints to the console a function call tree with cumulative times, occurring every 100th frame.

bool kanzi::ApplicationProperties::loadingTimeProfilingEnabled

Indicates whether the loading time profiling enabled.

When true, after the startup prints to the console a duration of loading times.

bool kanzi::ApplicationProperties::extensionOutputEnabled

Indicates whether the list of graphics related extensions printed when launching the application.

It is useful for debugging which extensions are supported by platform.

bool kanzi::ApplicationProperties::propertyOutputEnabled

Indicates whether the list of graphics related properties printed when launching the application, useful for debugging.

bool kanzi::ApplicationProperties::informationOutputEnabled

Indicates whether the list of graphics related information printed when launching the application, useful for debugging.

bool kanzi::ApplicationProperties::graphicsLoggingEnabled

Indicates whether graphics API calls should be logged, useful for debugging.

bool kanzi::ApplicationProperties::applicationIdleStateEnabled

When an application is in the idle state, if there are no changes in the scene graph and rendering is not necessary, the application main loop waits for events, such as input.

When you disable the application idle state, Kanzi extends this wait only until the next frame. When you enable the application idle state (the default setting), Kanzi waits until the application receives an event. Other threads may also post tasks to interrupt idle state.


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