|
openscenegraph
|
#include <DisplaySettings>
Static Public Member Functions | |
| static ref_ptr< DisplaySettings > & | instance () |
| Static Public Member Functions inherited from osg::Referenced | |
| static OpenThreads::Mutex * | getGlobalReferencedMutex () |
| static void | setDeleteHandler (DeleteHandler *handler) |
| static DeleteHandler * | getDeleteHandler () |
Protected Types | |
| typedef std::map< std::string, std::string > | ValueMap |
Protected Member Functions | |
| virtual | ~DisplaySettings () |
| Protected Member Functions inherited from osg::Referenced | |
| 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 |
|
protected |
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 |
References readEnvironmentalVariables(), osg::Referenced::Referenced(), and setDefaults().
Referenced by DisplaySettings(), merge(), operator=(), and setDisplaySettings().
|
inline |
References readCommandLine(), readEnvironmentalVariables(), osg::Referenced::Referenced(), and setDefaults().
| osg::DisplaySettings::DisplaySettings | ( | const DisplaySettings & | vs | ) |
References DisplaySettings().
|
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 |
References _minimumNumberAlphaBits.
|
inline |
References _application.
|
inline |
References _compileContextsHint.
|
inline |
References _depthBuffer.
|
inline |
References _displayType.
|
inline |
References _doubleBuffer.
|
inline |
References _eyeSeparation.
|
inline |
Get the hint of the flags to use in when creating graphic contexts.
References _glContextFlags.
|
inline |
Get the hint of the profile mask to use in when creating graphic contexts.
References _glContextProfileMask.
|
inline |
Get the hint of which OpenGL version to attempt to create a graphics context for.
References _glContextVersion.
|
inline |
Get mask selecting default implicit buffer attachments for Cameras primary FBOs.
References _implicitBufferAttachmentRenderMask.
Referenced by osg::Camera::getImplicitBufferAttachmentRenderMask().
|
inline |
Get mask selecting default implicit buffer attachments for Cameras secondary MULTISAMPLE FBOs.
References _implicitBufferAttachmentResolveMask.
Referenced by osg::Camera::getImplicitBufferAttachmentResolveMask().
|
inline |
References _keystoneFileNames.
|
inline |
References _keystoneFileNames.
|
inline |
References _keystoneHint.
|
inline |
References _keystones.
|
inline |
References _keystones.
|
inline |
References _maxBufferObjectPoolSize.
| unsigned int osg::DisplaySettings::getMaxNumberOfGraphicsContexts | ( | ) | const |
|
inline |
References _maxTexturePoolSize.
|
inline |
References _minimumNumberAccumAlphaBits.
|
inline |
References _minimumNumberAccumBlueBits.
|
inline |
References _minimumNumberAccumGreenBits.
|
inline |
References _minimumNumberAccumRedBits.
|
inline |
References _minimumNumberAlphaBits.
|
inline |
References _minimumNumberStencilBits.
|
inline |
References _numMultiSamples.
|
inline |
References _numMultiSamples.
|
inline |
Get the hint for total number of threads in the DatbasePager set up, inclusive of the number of http dedicated threads.
References _numDatabaseThreadsHint.
|
inline |
Get the hint for number of threads in the DatbasePager dedicated to reading http requests.
References _numHttpDatabaseThreadsHint.
| int osg::DisplaySettings::getNvOptimusEnablement | ( | ) | const |
Get the NvOptimusEnablement value.
|
inline |
References _OSXMenubarBehavior.
|
inline |
References _RGB.
|
inline |
References _screenDistance.
|
inline |
References _screenHeight.
|
inline |
References _screenWidth.
|
inline |
References _serializeDrawDispatch.
|
inline |
References _shaderHint.
|
inline |
References _splitStereoAutoAdjustAspectRatio.
|
inline |
References _splitStereoHorizontalEyeMapping.
|
inline |
References _splitStereoHorizontalSeparation.
|
inline |
References _splitStereoVerticalEyeMapping.
|
inline |
References _splitStereoVerticalSeparation.
|
inline |
References _minimumNumberStencilBits.
|
inline |
References _stereo.
|
inline |
References _stereoMode.
|
inline |
Get preferred swap method
References _swapMethod.
|
inline |
Set whether Arb Sync should be used to manage the swaps buffers.
References _syncSwapBuffers.
|
inline |
References _textShaderTechnique.
|
inline |
References _useSceneViewForStereoHint.
| bool osg::DisplaySettings::getValue | ( | const std::string & | name, |
| std::string & | value, | ||
| bool | use_getenv_fallback = true ) const |
|
inline |
References _vertexBufferHint.
|
static |
Maintain a DisplaySettings singleton for objects to query at runtime.
Referenced by osg::State::getActiveDisplaySettings(), osg::State::getActiveDisplaySettings(), osg::Camera::getImplicitBufferAttachmentRenderMask(), and osg::Camera::getImplicitBufferAttachmentResolveMask().
| void osg::DisplaySettings::merge | ( | const DisplaySettings & | vs | ) |
References DisplaySettings().
| DisplaySettings & osg::DisplaySettings::operator= | ( | const DisplaySettings & | vs | ) |
References DisplaySettings().
| void osg::DisplaySettings::readCommandLine | ( | ArgumentParser & | arguments | ) |
read the commandline arguments.
Referenced by DisplaySettings().
| void osg::DisplaySettings::readEnvironmentalVariables | ( | ) |
read the environmental variables.
Referenced by DisplaySettings(), and DisplaySettings().
|
inline |
References _application.
|
inline |
References _compileContextsHint.
| void osg::DisplaySettings::setDefaults | ( | ) |
Referenced by DisplaySettings(), and DisplaySettings().
|
inline |
References _depthBuffer.
| void osg::DisplaySettings::setDisplaySettings | ( | const DisplaySettings & | vs | ) |
References DisplaySettings().
|
inline |
References _displayType.
|
inline |
References _doubleBuffer.
|
inline |
References _eyeSeparation.
|
inline |
Set the hint of the flags to use in when creating graphic contexts.
References _glContextFlags.
|
inline |
Set the hint of the profile mask to use in when creating graphic contexts.
References _glContextProfileMask.
|
inline |
Set the hint of which OpenGL version to attempt to create a graphics context for.
References _glContextVersion.
|
inline |
|
inline |
References _implicitBufferAttachmentRenderMask.
|
inline |
References _implicitBufferAttachmentResolveMask.
|
inline |
References _keystoneFileNames.
|
inline |
References _keystoneHint.
|
inline |
References _keystones.
|
inline |
References _maxBufferObjectPoolSize.
| void osg::DisplaySettings::setMaxNumberOfGraphicsContexts | ( | unsigned int | num | ) |
|
inline |
References _maxTexturePoolSize.
| void osg::DisplaySettings::setMinimumNumAccumBits | ( | unsigned int | red, |
| unsigned int | green, | ||
| unsigned int | blue, | ||
| unsigned int | alpha ) |
|
inline |
References _minimumNumberAlphaBits.
|
inline |
References _minimumNumberStencilBits.
|
inline |
References _numMultiSamples.
|
inline |
Set the hint for the total number of threads in the DatbasePager set up, inclusive of the number of http dedicated threads.
References _numDatabaseThreadsHint.
|
inline |
Set the hint for number of threads in the DatbasePager to dedicate to reading http requests.
References _numHttpDatabaseThreadsHint.
| void osg::DisplaySettings::setNvOptimusEnablement | ( | int | value | ) |
Set the NvOptimusEnablement value. Default can be set using OSG_NvOptimusEnablement env var.
|
inline |
References _OSXMenubarBehavior.
|
inline |
References _RGB.
|
inline |
References _screenDistance.
|
inline |
References _screenHeight.
|
inline |
References _screenWidth.
|
inline |
References _serializeDrawDispatch.
| void osg::DisplaySettings::setShaderHint | ( | ShaderHint | hint, |
| bool | setShaderValues = true ) |
set the ShaderHint to tells shader generating cdoes version to create. By default also OSG_GLSL_VERSION and OSG_PRECISION_FLOAT values that can get use directly in shaders using $OSG_GLSL_VERSION and $OSG_PRECISION_FLOAT respectively.
|
inline |
References _splitStereoAutoAdjustAspectRatio.
|
inline |
References _splitStereoHorizontalEyeMapping.
|
inline |
References _splitStereoHorizontalSeparation.
|
inline |
References _splitStereoVerticalEyeMapping.
|
inline |
References _splitStereoVerticalSeparation.
|
inline |
References _stereo.
|
inline |
References _stereoMode.
|
inline |
Select preferred swap method
References _swapMethod.
|
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.
References _syncSwapBuffers.
|
inline |
Set the TextShaderTechnique that is used in the Text default constructor to choose which osgText::ShaderTechnique to use.
References _textShaderTechnique.
|
inline |
References _useSceneViewForStereoHint.
| void osg::DisplaySettings::setValue | ( | const std::string & | name, |
| const std::string & | value ) |
|
inline |
References _vertexBufferHint.
|
protected |
Referenced by getApplication(), and setApplication().
|
protected |
Referenced by getCompileContextsHint(), and setCompileContextsHint().
|
protected |
Referenced by getDepthBuffer(), and setDepthBuffer().
|
protected |
Referenced by getDisplayType(), and setDisplayType().
|
protected |
Referenced by getDoubleBuffer(), and setDoubleBuffer().
|
protected |
Referenced by getEyeSeparation(), and setEyeSeparation().
|
protected |
Referenced by getGLContextFlags(), and setGLContextFlags().
|
protected |
Referenced by getGLContextProfileMask(), and setGLContextProfileMask().
|
protected |
Referenced by getGLContextVersion(), and setGLContextVersion().
|
protected |
|
protected |
|
protected |
Referenced by getKeystoneFileNames(), getKeystoneFileNames(), and setKeystoneFileNames().
|
protected |
Referenced by getKeystoneHint(), and setKeystoneHint().
|
protected |
Referenced by getKeystones(), getKeystones(), and setKeystones().
|
protected |
Referenced by getMaxBufferObjectPoolSize(), and setMaxBufferObjectPoolSize().
|
protected |
|
protected |
Referenced by getMaxTexturePoolSize(), and setMaxTexturePoolSize().
|
protected |
Referenced by getAccumBuffer(), and getMinimumNumAccumAlphaBits().
|
protected |
Referenced by getAccumBuffer(), and getMinimumNumAccumBlueBits().
|
protected |
Referenced by getAccumBuffer(), and getMinimumNumAccumGreenBits().
|
protected |
Referenced by getAccumBuffer(), and getMinimumNumAccumRedBits().
|
protected |
Referenced by getAlphaBuffer(), getMinimumNumAlphaBits(), and setMinimumNumAlphaBits().
|
protected |
Referenced by getMinimumNumStencilBits(), getStencilBuffer(), and setMinimumNumStencilBits().
|
protected |
Referenced by getNumOfDatabaseThreadsHint(), and setNumOfDatabaseThreadsHint().
|
protected |
Referenced by getNumOfHttpDatabaseThreadsHint(), and setNumOfHttpDatabaseThreadsHint().
|
protected |
Referenced by getMultiSamples(), getNumMultiSamples(), and setNumMultiSamples().
|
protected |
Referenced by getOSXMenubarBehavior(), and setOSXMenubarBehavior().
|
protected |
Referenced by getScreenDistance(), and setScreenDistance().
|
protected |
Referenced by getScreenHeight(), and setScreenHeight().
|
protected |
Referenced by getScreenWidth(), and setScreenWidth().
|
protected |
Referenced by getSerializeDrawDispatch(), and setSerializeDrawDispatch().
|
protected |
Referenced by getShaderHint().
|
protected |
Referenced by getSplitStereoAutoAdjustAspectRatio(), and setSplitStereoAutoAdjustAspectRatio().
|
protected |
Referenced by getSplitStereoHorizontalEyeMapping(), and setSplitStereoHorizontalEyeMapping().
|
protected |
Referenced by getSplitStereoHorizontalSeparation(), and setSplitStereoHorizontalSeparation().
|
protected |
Referenced by getSplitStereoVerticalEyeMapping(), and setSplitStereoVerticalEyeMapping().
|
protected |
Referenced by getSplitStereoVerticalSeparation(), and setSplitStereoVerticalSeparation().
|
protected |
Referenced by getStereo(), and setStereo().
|
protected |
Referenced by getStereoMode(), and setStereoMode().
|
protected |
Referenced by getSwapMethod(), and setSwapMethod().
|
protected |
Referenced by getSyncSwapBuffers(), and setSyncSwapBuffers().
|
protected |
Referenced by getTextShaderTechnique(), and setTextShaderTechnique().
|
protected |
Referenced by getUseSceneViewForStereoHint(), and setUseSceneViewForStereoHint().
|
mutableprotected |
|
mutableprotected |
|
protected |
Referenced by getVertexBufferHint(), and setVertexBufferHint().