openscenegraph
|
Static Public Member Functions | |
static ref_ptr< DisplaySettings > & | instance () |
![]() | |
static OpenThreads::Mutex * | getGlobalReferencedMutex () |
static void | setThreadSafeReferenceCounting (bool enableThreadSafeReferenceCounting) |
static bool | getThreadSafeReferenceCounting () |
static void | setDeleteHandler (DeleteHandler *handler) |
static DeleteHandler * | getDeleteHandler () |
Protected Member Functions | |
virtual | ~DisplaySettings () |
![]() | |
virtual | ~Referenced () |
void | signalObserversAndDelete (bool signalDelete, bool doDelete) const |
void | deleteUsingDeleteHandler () const |
DisplaySettings class for encapsulating what visuals are required and have been set up, and the status of stereo viewing.
typedef std::vector<std::string> osg::DisplaySettings::FileNames |
typedef std::vector< osg::ref_ptr<osg::Object> > osg::DisplaySettings::Objects |
Methods used to set and get defaults for Cameras implicit buffer attachments. For more info: See description of Camera::setImplicitBufferAttachment method
DisplaySettings implicit buffer attachment selection defaults to: DEPTH and COLOR for both primary (Render) FBO and secondary Multisample (Resolve) FBO ie: IMPLICIT_DEPTH_BUFFER_ATTACHMENT | IMPLICIT_COLOR_BUFFER_ATTACHMENT
Enumerator | |
---|---|
IMPLICIT_DEPTH_BUFFER_ATTACHMENT | |
IMPLICIT_STENCIL_BUFFER_ATTACHMENT | |
IMPLICIT_COLOR_BUFFER_ATTACHMENT | |
DEFAULT_IMPLICIT_BUFFER_ATTACHMENT |
|
inline |
|
inline |
osg::DisplaySettings::DisplaySettings | ( | const DisplaySettings & | vs | ) |
|
protectedvirtual |
|
virtual |
helper function for computing the left eye projection matrix.
|
virtual |
helper function for computing the left eye view matrix.
|
virtual |
helper function for computing the right eye view matrix.
|
virtual |
helper function for computing the right eye view matrix.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Get the hint of the flags to use in when creating graphic contexts.
|
inline |
Get the hint of the profile mask to use in when creating graphic contexts.
|
inline |
Get the hint of which OpenGL version to attempt to create a graphics context for.
|
inline |
Get mask selecting default implicit buffer attachments for Cameras primary FBOs.
|
inline |
Get mask selecting default implicit buffer attachments for Cameras secondary MULTISAMPLE FBOs.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
unsigned int osg::DisplaySettings::getMaxNumberOfGraphicsContexts | ( | ) | const |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Get the hint for total number of threads in the DatbasePager set up, inclusive of the number of http dedicated threads.
|
inline |
Get the hint for number of threads in the DatbasePager dedicated to reading http requests.
int osg::DisplaySettings::getNvOptimusEnablement | ( | ) | const |
Get the NvOptimusEnablement value.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Get preferred swap method
|
inline |
Set whether Arb Sync should be used to manage the swaps buffers.
|
inline |
|
static |
Maintain a DisplaySettings singleton for objects to query at runtime.
void osg::DisplaySettings::merge | ( | const DisplaySettings & | vs | ) |
DisplaySettings& osg::DisplaySettings::operator= | ( | const DisplaySettings & | vs | ) |
void osg::DisplaySettings::readCommandLine | ( | ArgumentParser & | arguments | ) |
read the commandline arguments.
void osg::DisplaySettings::readEnvironmentalVariables | ( | ) |
read the environmental variables.
|
inline |
|
inline |
void osg::DisplaySettings::setDefaults | ( | ) |
|
inline |
void osg::DisplaySettings::setDisplaySettings | ( | const DisplaySettings & | vs | ) |
|
inline |
|
inline |
|
inline |
|
inline |
Set the hint of the flags to use in when creating graphic contexts.
|
inline |
Set the hint of the profile mask to use in when creating graphic contexts.
|
inline |
Set the hint of which OpenGL version to attempt to create a graphics context for.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
void osg::DisplaySettings::setMaxNumberOfGraphicsContexts | ( | unsigned int | num | ) |
|
inline |
void osg::DisplaySettings::setMinimumNumAccumBits | ( | unsigned int | red, |
unsigned int | green, | ||
unsigned int | blue, | ||
unsigned int | alpha | ||
) |
|
inline |
|
inline |
|
inline |
|
inline |
Set the hint for the total number of threads in the DatbasePager set up, inclusive of the number of http dedicated threads.
|
inline |
Set the hint for number of threads in the DatbasePager to dedicate to reading http requests.
void osg::DisplaySettings::setNvOptimusEnablement | ( | int | value | ) |
Set the NvOptimusEnablement value. Default can be set using OSG_NvOptimusEnablement env var.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Select preferred swap method
|
inline |
Set whether Arb Sync should be used to manage the swaps buffers, 0 disables the use of the sync, greater than zero enables sync based on number of frames specified.
|
inline |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |