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 seconday Multisample (Resolve) FBO ie: IMPLICT_DEPTH_BUFFER_ATTACHMENT | IMPLICIT_COLOR_BUFFER_ATTACHMENT
osg::DisplaySettings::DisplaySettings | ( | ) | [inline] |
osg::DisplaySettings::DisplaySettings | ( | ArgumentParser & | arguments | ) | [inline] |
References osgDB::readCommandLine().
osg::DisplaySettings::DisplaySettings | ( | const DisplaySettings & | vs | ) |
virtual osg::DisplaySettings::~DisplaySettings | ( | ) | [protected, virtual] |
static DisplaySettings* osg::DisplaySettings::instance | ( | ) | [static] |
Maintain a DisplaySettings singleton for objects to query at runtime.
Referenced by osg::Camera::getImplicitBufferAttachmentRenderMask(), and osg::Camera::getImplicitBufferAttachmentResolveMask().
DisplaySettings& osg::DisplaySettings::operator= | ( | const DisplaySettings & | vs | ) |
void osg::DisplaySettings::setDisplaySettings | ( | const DisplaySettings & | vs | ) |
void osg::DisplaySettings::merge | ( | const DisplaySettings & | vs | ) |
void osg::DisplaySettings::setDefaults | ( | ) |
void osg::DisplaySettings::readEnvironmentalVariables | ( | ) |
read the environmental variables.
void osg::DisplaySettings::readCommandLine | ( | ArgumentParser & | arguments | ) |
read the commandline arguments.
void osg::DisplaySettings::setDisplayType | ( | DisplayType | type | ) | [inline] |
DisplayType osg::DisplaySettings::getDisplayType | ( | ) | const [inline] |
void osg::DisplaySettings::setStereo | ( | bool | on | ) | [inline] |
bool osg::DisplaySettings::getStereo | ( | ) | const [inline] |
void osg::DisplaySettings::setStereoMode | ( | StereoMode | mode | ) | [inline] |
StereoMode osg::DisplaySettings::getStereoMode | ( | ) | const [inline] |
void osg::DisplaySettings::setEyeSeparation | ( | float | eyeSeparation | ) | [inline] |
float osg::DisplaySettings::getEyeSeparation | ( | ) | const [inline] |
void osg::DisplaySettings::setSplitStereoHorizontalEyeMapping | ( | SplitStereoHorizontalEyeMapping | m | ) | [inline] |
SplitStereoHorizontalEyeMapping osg::DisplaySettings::getSplitStereoHorizontalEyeMapping | ( | ) | const [inline] |
void osg::DisplaySettings::setSplitStereoHorizontalSeparation | ( | int | s | ) | [inline] |
int osg::DisplaySettings::getSplitStereoHorizontalSeparation | ( | ) | const [inline] |
void osg::DisplaySettings::setSplitStereoVerticalEyeMapping | ( | SplitStereoVerticalEyeMapping | m | ) | [inline] |
SplitStereoVerticalEyeMapping osg::DisplaySettings::getSplitStereoVerticalEyeMapping | ( | ) | const [inline] |
void osg::DisplaySettings::setSplitStereoVerticalSeparation | ( | int | s | ) | [inline] |
int osg::DisplaySettings::getSplitStereoVerticalSeparation | ( | ) | const [inline] |
void osg::DisplaySettings::setSplitStereoAutoAdjustAspectRatio | ( | bool | flag | ) | [inline] |
bool osg::DisplaySettings::getSplitStereoAutoAdjustAspectRatio | ( | ) | const [inline] |
void osg::DisplaySettings::setScreenWidth | ( | float | width | ) | [inline] |
float osg::DisplaySettings::getScreenWidth | ( | ) | const [inline] |
void osg::DisplaySettings::setScreenHeight | ( | float | height | ) | [inline] |
float osg::DisplaySettings::getScreenHeight | ( | ) | const [inline] |
void osg::DisplaySettings::setScreenDistance | ( | float | distance | ) | [inline] |
float osg::DisplaySettings::getScreenDistance | ( | ) | const [inline] |
void osg::DisplaySettings::setDoubleBuffer | ( | bool | flag | ) | [inline] |
bool osg::DisplaySettings::getDoubleBuffer | ( | ) | const [inline] |
void osg::DisplaySettings::setRGB | ( | bool | flag | ) | [inline] |
bool osg::DisplaySettings::getRGB | ( | ) | const [inline] |
void osg::DisplaySettings::setDepthBuffer | ( | bool | flag | ) | [inline] |
bool osg::DisplaySettings::getDepthBuffer | ( | ) | const [inline] |
void osg::DisplaySettings::setMinimumNumAlphaBits | ( | unsigned int | bits | ) | [inline] |
unsigned int osg::DisplaySettings::getMinimumNumAlphaBits | ( | ) | const [inline] |
bool osg::DisplaySettings::getAlphaBuffer | ( | ) | const [inline] |
void osg::DisplaySettings::setMinimumNumStencilBits | ( | unsigned int | bits | ) | [inline] |
unsigned int osg::DisplaySettings::getMinimumNumStencilBits | ( | ) | const [inline] |
bool osg::DisplaySettings::getStencilBuffer | ( | ) | const [inline] |
void osg::DisplaySettings::setMinimumNumAccumBits | ( | unsigned int | red, | |
unsigned int | green, | |||
unsigned int | blue, | |||
unsigned int | alpha | |||
) |
unsigned int osg::DisplaySettings::getMinimumNumAccumRedBits | ( | ) | const [inline] |
unsigned int osg::DisplaySettings::getMinimumNumAccumGreenBits | ( | ) | const [inline] |
unsigned int osg::DisplaySettings::getMinimumNumAccumBlueBits | ( | ) | const [inline] |
unsigned int osg::DisplaySettings::getMinimumNumAccumAlphaBits | ( | ) | const [inline] |
bool osg::DisplaySettings::getAccumBuffer | ( | ) | const [inline] |
void osg::DisplaySettings::setMaxNumberOfGraphicsContexts | ( | unsigned int | num | ) |
unsigned int osg::DisplaySettings::getMaxNumberOfGraphicsContexts | ( | ) | const |
void osg::DisplaySettings::setNumMultiSamples | ( | unsigned int | samples | ) | [inline] |
unsigned int osg::DisplaySettings::getNumMultiSamples | ( | ) | const [inline] |
bool osg::DisplaySettings::getMultiSamples | ( | ) | const [inline] |
void osg::DisplaySettings::setCompileContextsHint | ( | bool | useCompileContexts | ) | [inline] |
bool osg::DisplaySettings::getCompileContextsHint | ( | ) | const [inline] |
void osg::DisplaySettings::setSerializeDrawDispatch | ( | bool | serializeDrawDispatch | ) | [inline] |
bool osg::DisplaySettings::getSerializeDrawDispatch | ( | ) | const [inline] |
void osg::DisplaySettings::setNumOfDatabaseThreadsHint | ( | unsigned int | numThreads | ) | [inline] |
Set the hint for the total number of threads in the DatbasePager set up, inclusive of the number of http dedicated threads.
unsigned int osg::DisplaySettings::getNumOfDatabaseThreadsHint | ( | ) | const [inline] |
Get the hint for total number of threads in the DatbasePager set up, inclusive of the number of http dedicated threads.
void osg::DisplaySettings::setNumOfHttpDatabaseThreadsHint | ( | unsigned int | numThreads | ) | [inline] |
Set the hint for number of threads in the DatbasePager to dedicate to reading http requests.
unsigned int osg::DisplaySettings::getNumOfHttpDatabaseThreadsHint | ( | ) | const [inline] |
Get the hint for number of threads in the DatbasePager dedicated to reading http requests.
void osg::DisplaySettings::setApplication | ( | const std::string & | application | ) | [inline] |
const std::string& osg::DisplaySettings::getApplication | ( | ) | [inline] |
void osg::DisplaySettings::setMaxTexturePoolSize | ( | unsigned int | size | ) | [inline] |
unsigned int osg::DisplaySettings::getMaxTexturePoolSize | ( | ) | const [inline] |
void osg::DisplaySettings::setMaxBufferObjectPoolSize | ( | unsigned int | size | ) | [inline] |
unsigned int osg::DisplaySettings::getMaxBufferObjectPoolSize | ( | ) | const [inline] |
void osg::DisplaySettings::setImplicitBufferAttachmentMask | ( | ImplicitBufferAttachmentMask | renderMask = DisplaySettings::DEFAULT_IMPLICIT_BUFFER_ATTACHMENT , |
|
ImplicitBufferAttachmentMask | resolveMask = DisplaySettings::DEFAULT_IMPLICIT_BUFFER_ATTACHMENT | |||
) | [inline] |
void osg::DisplaySettings::setImplicitBufferAttachmentRenderMask | ( | ImplicitBufferAttachmentMask | implicitBufferAttachmentRenderMask | ) | [inline] |
void osg::DisplaySettings::setImplicitBufferAttachmentResolveMask | ( | ImplicitBufferAttachmentMask | implicitBufferAttachmentResolveMask | ) | [inline] |
ImplicitBufferAttachmentMask osg::DisplaySettings::getImplicitBufferAttachmentRenderMask | ( | ) | const [inline] |
Get mask selecting default implict buffer attachments for Cameras primary FBOs.
Referenced by osg::Camera::getImplicitBufferAttachmentRenderMask(), and osg::Camera::getImplicitBufferAttachmentResolveMask().
ImplicitBufferAttachmentMask osg::DisplaySettings::getImplicitBufferAttachmentResolveMask | ( | ) | const [inline] |
Get mask selecting default implict buffer attachments for Cameras secondary MULTISAMPLE FBOs.
void osg::DisplaySettings::setGLContextVersion | ( | const std::string & | version | ) | [inline] |
Set the hint of which OpenGL version to attempt to create a graphics context for.
const std::string osg::DisplaySettings::getGLContextVersion | ( | ) | const [inline] |
Get the hint of which OpenGL version to attempt to create a graphics context for.
void osg::DisplaySettings::setGLContextFlags | ( | unsigned int | flags | ) | [inline] |
Set the hint of the flags to use in when creating graphic contexts.
unsigned int osg::DisplaySettings::getGLContextFlags | ( | ) | const [inline] |
Get the hint of the flags to use in when creating graphic contexts.
void osg::DisplaySettings::setGLContextProfileMask | ( | unsigned int | mask | ) | [inline] |
Set the hint of the profile mask to use in when creating graphic contexts.
unsigned int osg::DisplaySettings::getGLContextProfileMask | ( | ) | const [inline] |
Get the hint of the profile mask to use in when creating graphic contexts.
DisplayType osg::DisplaySettings::_displayType [protected] |
bool osg::DisplaySettings::_stereo [protected] |
StereoMode osg::DisplaySettings::_stereoMode [protected] |
float osg::DisplaySettings::_eyeSeparation [protected] |
float osg::DisplaySettings::_screenWidth [protected] |
float osg::DisplaySettings::_screenHeight [protected] |
float osg::DisplaySettings::_screenDistance [protected] |
int osg::DisplaySettings::_splitStereoHorizontalSeparation [protected] |
int osg::DisplaySettings::_splitStereoVerticalSeparation [protected] |
bool osg::DisplaySettings::_splitStereoAutoAdjustAspectRatio [protected] |
bool osg::DisplaySettings::_doubleBuffer [protected] |
bool osg::DisplaySettings::_RGB [protected] |
bool osg::DisplaySettings::_depthBuffer [protected] |
unsigned int osg::DisplaySettings::_minimumNumberAlphaBits [protected] |
unsigned int osg::DisplaySettings::_minimumNumberStencilBits [protected] |
unsigned int osg::DisplaySettings::_minimumNumberAccumRedBits [protected] |
unsigned int osg::DisplaySettings::_minimumNumberAccumGreenBits [protected] |
unsigned int osg::DisplaySettings::_minimumNumberAccumBlueBits [protected] |
unsigned int osg::DisplaySettings::_minimumNumberAccumAlphaBits [protected] |
unsigned int osg::DisplaySettings::_maxNumOfGraphicsContexts [protected] |
unsigned int osg::DisplaySettings::_numMultiSamples [protected] |
bool osg::DisplaySettings::_compileContextsHint [protected] |
bool osg::DisplaySettings::_serializeDrawDispatch [protected] |
unsigned int osg::DisplaySettings::_numDatabaseThreadsHint [protected] |
unsigned int osg::DisplaySettings::_numHttpDatabaseThreadsHint [protected] |
std::string osg::DisplaySettings::_application [protected] |
unsigned int osg::DisplaySettings::_maxTexturePoolSize [protected] |
unsigned int osg::DisplaySettings::_maxBufferObjectPoolSize [protected] |
std::string osg::DisplaySettings::_glContextVersion [protected] |
unsigned int osg::DisplaySettings::_glContextFlags [protected] |
unsigned int osg::DisplaySettings::_glContextProfileMask [protected] |