Support Forum       G3D Web Page     
Public Member Functions | Public Attributes | List of all members
G3D::G3DSpecification Class Reference

Options for initG3D and initGLG3D. More...

Public Member Functions

 G3DSpecification ()
 
virtual ~G3DSpecification ()
 

Public Attributes

bool audio = false
 Should AudioDevice be enabled? (It will still be initialized regardless of enabling.) Default: false. More...
 
unsigned int audioBufferLength = 1024
 Audio DSP buffer length to use. More...
 
int audioNumBuffers = 4
 Number of audio DSP buffers to use. More...
 
float defaultGuiPixelScale = -1.0f
 Scale used by G3D::GuiWindow::pixelScale. More...
 
bool deployMode = false
 Set parameters for deployment of a standalone application. More...
 
const char * logFilename = "log.txt"
 Name that Log::common() and logPrintf() use. More...
 
bool threadedNetworking = true
 Should G3D spawn its own network thread? More...
 

Detailed Description

Options for initG3D and initGLG3D.

Constructor & Destructor Documentation

◆ G3DSpecification()

G3D::G3DSpecification::G3DSpecification ( )
inline

◆ ~G3DSpecification()

virtual G3D::G3DSpecification::~G3DSpecification ( )
inlinevirtual

Member Data Documentation

◆ audio

bool G3D::G3DSpecification::audio = false

Should AudioDevice be enabled? (It will still be initialized regardless of enabling.) Default: false.

◆ audioBufferLength

unsigned int G3D::G3DSpecification::audioBufferLength = 1024

Audio DSP buffer length to use.

Affects audio latency. Default: 1024. FMOD claims that the default results in 21.33 ms of latency at 48 khz (1024 / 48000 * 1000 = 21.33).

◆ audioNumBuffers

int G3D::G3DSpecification::audioNumBuffers = 4

Number of audio DSP buffers to use.

Default: 4.

◆ defaultGuiPixelScale

float G3D::G3DSpecification::defaultGuiPixelScale = -1.0f

Scale used by G3D::GuiWindow::pixelScale.

If -1, the scale automatically is chosen by the GuiWindow based on the primary display resolution. 4k = 2x, 8k = 4x

◆ deployMode

bool G3D::G3DSpecification::deployMode = false

Set parameters for deployment of a standalone application.

If true, disable System::findDataFile's ability to look in the directory specified by the G3D10DATA environment variable.

◆ logFilename

const char* G3D::G3DSpecification::logFilename = "log.txt"

Name that Log::common() and logPrintf() use.

◆ threadedNetworking

bool G3D::G3DSpecification::threadedNetworking = true

Should G3D spawn its own network thread?

If true, G3D will spawn a thread for network management on the first invocation of G3D::NetServer::create or G3D::NetConnection::connectToServer.

If false and networking is used, the application must explicitly invoke G3D::serviceNetwork() regularly to allow the network code to run.

In either case, the network API is threadsafe.

Default: true.


documentation generated on Wed Nov 24 2021 08:01:55 using doxygen 1.8.15