openscenegraph
|
Public Types | |
enum | DisplayType { MONITOR, POWERWALL, REALITY_CENTER, HEAD_MOUNTED_DISPLAY } |
enum | StereoMode { QUAD_BUFFER, ANAGLYPHIC, HORIZONTAL_SPLIT, VERTICAL_SPLIT, LEFT_EYE, RIGHT_EYE, HORIZONTAL_INTERLACE, VERTICAL_INTERLACE, CHECKERBOARD } |
enum | SplitStereoHorizontalEyeMapping { LEFT_EYE_LEFT_VIEWPORT, LEFT_EYE_RIGHT_VIEWPORT } |
enum | SplitStereoVerticalEyeMapping { LEFT_EYE_TOP_VIEWPORT, LEFT_EYE_BOTTOM_VIEWPORT } |
enum | ImplicitBufferAttachment { IMPLICIT_DEPTH_BUFFER_ATTACHMENT = (1 << 0), IMPLICIT_STENCIL_BUFFER_ATTACHMENT = (1 << 1), IMPLICIT_COLOR_BUFFER_ATTACHMENT = (1 << 2), DEFAULT_IMPLICIT_BUFFER_ATTACHMENT = IMPLICIT_COLOR_BUFFER_ATTACHMENT | IMPLICIT_DEPTH_BUFFER_ATTACHMENT } |
enum | SwapMethod { SWAP_DEFAULT, SWAP_EXCHANGE, SWAP_COPY, SWAP_UNDEFINED } |
typedef int | ImplicitBufferAttachmentMask |
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.
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
|
inline |
|
inline |
References osgDB::readCommandLine().
osg::DisplaySettings::DisplaySettings | ( | const DisplaySettings & | vs | ) |
|
protectedvirtual |
|
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 implict buffer attachments for Cameras primary FBOs.
Referenced by osg::Camera::getImplicitBufferAttachmentRenderMask().
|
inline |
Get mask selecting default implict buffer attachments for Cameras secondary MULTISAMPLE FBOs.
Referenced by osg::Camera::getImplicitBufferAttachmentResolveMask().
|
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.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Get preferred swap method
|
static |
Maintain a DisplaySettings singleton for objects to query at runtime.
Referenced by osg::Camera::getImplicitBufferAttachmentRenderMask(), and osg::Camera::getImplicitBufferAttachmentResolveMask().
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 |
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.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Select preferred swap method
|
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 |