DisplaySettings
Go to the documentation of this file.
/* -*-c++-*- OpenSceneGraph - Copyright (C) 1998-2006 Robert Osfield
*
* This library is open source and may be redistributed and/or modified under
* the terms of the OpenSceneGraph Public License (OSGPL) version 0.0 or
* (at your option) any later version. The full license is in LICENSE file
* included with this distribution, and on the openscenegraph.org website.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* OpenSceneGraph Public License for more details.
*/
#ifndef OSG_DisplaySettings
#define OSG_DisplaySettings 1
#include <osg/Referenced>
#include <osg/Matrixd>
#include <osg/ref_ptr>
#include <string>
#include <vector>
#include <map>
namespace osg {
// forward declare
class ArgumentParser;
class ApplicationUsage;
class OSG_EXPORT DisplaySettings : public osg::Referenced
{
public:
static ref_ptr<DisplaySettings>& instance();
DisplaySettings():
Referenced(true)
{
setDefaults();
readEnvironmentalVariables();
}
DisplaySettings(ArgumentParser& arguments):
Referenced(true)
{
setDefaults();
readEnvironmentalVariables();
readCommandLine(arguments);
}
DisplaySettings(const DisplaySettings& vs);
DisplaySettings& operator = (const DisplaySettings& vs);
void setDisplaySettings(const DisplaySettings& vs);
void merge(const DisplaySettings& vs);
void setDefaults();
void readEnvironmentalVariables();
void readCommandLine(ArgumentParser& arguments);
enum DisplayType
{
MONITOR,
POWERWALL,
REALITY_CENTER,
HEAD_MOUNTED_DISPLAY
};
void setDisplayType(DisplayType type) { _displayType = type; }
DisplayType getDisplayType() const { return _displayType; }
void setStereo(bool on) { _stereo = on; }
bool getStereo() const { return _stereo; }
enum StereoMode
{
QUAD_BUFFER,
ANAGLYPHIC,
HORIZONTAL_SPLIT,
VERTICAL_SPLIT,
LEFT_EYE,
RIGHT_EYE,
HORIZONTAL_INTERLACE,
VERTICAL_INTERLACE,
CHECKERBOARD
};
void setStereoMode(StereoMode mode) { _stereoMode = mode; }
StereoMode getStereoMode() const { return _stereoMode; }
void setEyeSeparation(float eyeSeparation) { _eyeSeparation = eyeSeparation; }
float getEyeSeparation() const { return _eyeSeparation; }
enum SplitStereoHorizontalEyeMapping
{
LEFT_EYE_LEFT_VIEWPORT,
LEFT_EYE_RIGHT_VIEWPORT
};
void setSplitStereoHorizontalEyeMapping(SplitStereoHorizontalEyeMapping m) { _splitStereoHorizontalEyeMapping = m; }
SplitStereoHorizontalEyeMapping getSplitStereoHorizontalEyeMapping() const { return _splitStereoHorizontalEyeMapping; }
void setSplitStereoHorizontalSeparation(int s) { _splitStereoHorizontalSeparation = s; }
int getSplitStereoHorizontalSeparation() const { return _splitStereoHorizontalSeparation; }
enum SplitStereoVerticalEyeMapping
{
LEFT_EYE_TOP_VIEWPORT,
LEFT_EYE_BOTTOM_VIEWPORT
};
void setSplitStereoVerticalEyeMapping(SplitStereoVerticalEyeMapping m) { _splitStereoVerticalEyeMapping = m; }
SplitStereoVerticalEyeMapping getSplitStereoVerticalEyeMapping() const { return _splitStereoVerticalEyeMapping; }
void setSplitStereoVerticalSeparation(int s) { _splitStereoVerticalSeparation = s; }
int getSplitStereoVerticalSeparation() const { return _splitStereoVerticalSeparation; }
void setSplitStereoAutoAdjustAspectRatio(bool flag) { _splitStereoAutoAdjustAspectRatio=flag; }
bool getSplitStereoAutoAdjustAspectRatio() const { return _splitStereoAutoAdjustAspectRatio; }
void setScreenWidth(float width) { _screenWidth = width; }
float getScreenWidth() const { return _screenWidth; }
void setScreenHeight(float height) { _screenHeight = height; }
float getScreenHeight() const { return _screenHeight; }
void setScreenDistance(float distance) { _screenDistance = distance; }
float getScreenDistance() const { return _screenDistance; }
void setDoubleBuffer(bool flag) { _doubleBuffer = flag; }
bool getDoubleBuffer() const { return _doubleBuffer; }
void setRGB(bool flag) { _RGB = flag; }
bool getRGB() const { return _RGB; }
void setDepthBuffer(bool flag) { _depthBuffer = flag; }
bool getDepthBuffer() const { return _depthBuffer; }
void setMinimumNumAlphaBits(unsigned int bits) { _minimumNumberAlphaBits = bits; }
unsigned int getMinimumNumAlphaBits() const { return _minimumNumberAlphaBits; }
bool getAlphaBuffer() const { return _minimumNumberAlphaBits!=0; }
void setMinimumNumStencilBits(unsigned int bits) { _minimumNumberStencilBits = bits; }
unsigned int getMinimumNumStencilBits() const { return _minimumNumberStencilBits; }
bool getStencilBuffer() const { return _minimumNumberStencilBits!=0; }
void setMinimumNumAccumBits(unsigned int red, unsigned int green, unsigned int blue, unsigned int alpha);
unsigned int getMinimumNumAccumRedBits() const { return _minimumNumberAccumRedBits; }
unsigned int getMinimumNumAccumGreenBits() const { return _minimumNumberAccumGreenBits; }
unsigned int getMinimumNumAccumBlueBits() const { return _minimumNumberAccumBlueBits; }
unsigned int getMinimumNumAccumAlphaBits() const { return _minimumNumberAccumAlphaBits; }
bool getAccumBuffer() const { return (_minimumNumberAccumRedBits+_minimumNumberAccumGreenBits+_minimumNumberAccumBlueBits+_minimumNumberAccumAlphaBits)!=0; }
void setMaxNumberOfGraphicsContexts(unsigned int num);
unsigned int getMaxNumberOfGraphicsContexts() const;
void setNumMultiSamples(unsigned int samples) { _numMultiSamples = samples; }
unsigned int getNumMultiSamples() const { return _numMultiSamples; }
bool getMultiSamples() const { return _numMultiSamples!=0; }
void setCompileContextsHint(bool useCompileContexts) { _compileContextsHint = useCompileContexts; }
bool getCompileContextsHint() const { return _compileContextsHint; }
void setSerializeDrawDispatch(bool serializeDrawDispatch) { _serializeDrawDispatch = serializeDrawDispatch; }
bool getSerializeDrawDispatch() const { return _serializeDrawDispatch; }
void setUseSceneViewForStereoHint(bool hint) { _useSceneViewForStereoHint = hint; }
bool getUseSceneViewForStereoHint() const { return _useSceneViewForStereoHint; }
void setNumOfDatabaseThreadsHint(unsigned int numThreads) { _numDatabaseThreadsHint = numThreads; }
unsigned int getNumOfDatabaseThreadsHint() const { return _numDatabaseThreadsHint; }
void setNumOfHttpDatabaseThreadsHint(unsigned int numThreads) { _numHttpDatabaseThreadsHint = numThreads; }
unsigned int getNumOfHttpDatabaseThreadsHint() const { return _numHttpDatabaseThreadsHint; }
void setApplication(const std::string& application) { _application = application; }
const std::string& getApplication() { return _application; }
void setMaxTexturePoolSize(unsigned int size) { _maxTexturePoolSize = size; }
unsigned int getMaxTexturePoolSize() const { return _maxTexturePoolSize; }
void setMaxBufferObjectPoolSize(unsigned int size) { _maxBufferObjectPoolSize = size; }
unsigned int getMaxBufferObjectPoolSize() const { return _maxBufferObjectPoolSize; }
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
};
typedef int ImplicitBufferAttachmentMask;
void setImplicitBufferAttachmentMask(ImplicitBufferAttachmentMask renderMask = DisplaySettings::DEFAULT_IMPLICIT_BUFFER_ATTACHMENT, ImplicitBufferAttachmentMask resolveMask = DisplaySettings::DEFAULT_IMPLICIT_BUFFER_ATTACHMENT )
{
_implicitBufferAttachmentRenderMask = renderMask;
_implicitBufferAttachmentResolveMask = resolveMask;
}
void setImplicitBufferAttachmentRenderMask(ImplicitBufferAttachmentMask implicitBufferAttachmentRenderMask)
{
_implicitBufferAttachmentRenderMask = implicitBufferAttachmentRenderMask;
}
void setImplicitBufferAttachmentResolveMask(ImplicitBufferAttachmentMask implicitBufferAttachmentResolveMask)
{
_implicitBufferAttachmentResolveMask = implicitBufferAttachmentResolveMask;
}
ImplicitBufferAttachmentMask getImplicitBufferAttachmentRenderMask() const { return _implicitBufferAttachmentRenderMask; }
ImplicitBufferAttachmentMask getImplicitBufferAttachmentResolveMask() const { return _implicitBufferAttachmentResolveMask;}
enum SwapMethod
{
SWAP_DEFAULT, // Leave swap method at default returned by choose Pixel Format.
SWAP_EXCHANGE, // Flip front / back buffer.
SWAP_COPY, // Copy back to front buffer.
SWAP_UNDEFINED // Move back to front buffer leaving contents of back buffer undefined.
};
void setSwapMethod( SwapMethod swapMethod ) { _swapMethod = swapMethod; }
SwapMethod getSwapMethod( void ) { return _swapMethod; }
void setSyncSwapBuffers(unsigned int numFrames=0) { _syncSwapBuffers = numFrames; }
unsigned int getSyncSwapBuffers() const { return _syncSwapBuffers; }
void setGLContextVersion(const std::string& version) { _glContextVersion = version; }
const std::string getGLContextVersion() const { return _glContextVersion; }
void setGLContextFlags(unsigned int flags) { _glContextFlags = flags; }
unsigned int getGLContextFlags() const { return _glContextFlags; }
void setGLContextProfileMask(unsigned int mask) { _glContextProfileMask = mask; }
unsigned int getGLContextProfileMask() const { return _glContextProfileMask; }
void setNvOptimusEnablement(int value);
int getNvOptimusEnablement() const;
enum VertexBufferHint
{
NO_PREFERENCE,
VERTEX_BUFFER_OBJECT,
VERTEX_ARRAY_OBJECT
};
void setVertexBufferHint(VertexBufferHint gi) { _vertexBufferHint = gi; }
VertexBufferHint getVertexBufferHint() const { return _vertexBufferHint; }
enum ShaderHint
{
SHADER_NONE,
SHADER_GL2,
SHADER_GLES2,
SHADER_GL3,
SHADER_GLES3
};
void setShaderHint(ShaderHint hint, bool setShaderValues=true);
ShaderHint getShaderHint() const { return _shaderHint; }
void setTextShaderTechnique(const std::string& str) { _textShaderTechnique = str; }
const std::string& getTextShaderTechnique() const { return _textShaderTechnique; }
void setKeystoneHint(bool enabled) { _keystoneHint = enabled; }
bool getKeystoneHint() const { return _keystoneHint; }
typedef std::vector<std::string> FileNames;
void setKeystoneFileNames(const FileNames& filenames) { _keystoneFileNames = filenames; }
FileNames& getKeystoneFileNames() { return _keystoneFileNames; }
const FileNames& getKeystoneFileNames() const { return _keystoneFileNames; }
typedef std::vector< osg::ref_ptr<osg::Object> > Objects;
void setKeystones(const Objects& objects) { _keystones = objects; }
Objects& getKeystones() { return _keystones; }
const Objects& getKeystones() const { return _keystones; }
enum OSXMenubarBehavior
{
MENUBAR_AUTO_HIDE,
MENUBAR_FORCE_HIDE,
MENUBAR_FORCE_SHOW
};
OSXMenubarBehavior getOSXMenubarBehavior() const { return _OSXMenubarBehavior; }
void setOSXMenubarBehavior(OSXMenubarBehavior hint) { _OSXMenubarBehavior = hint; }
virtual osg::Matrixd computeLeftEyeProjectionImplementation(const osg::Matrixd& projection) const;
virtual osg::Matrixd computeLeftEyeViewImplementation(const osg::Matrixd& view, double eyeSeperationScale=1.0) const;
virtual osg::Matrixd computeRightEyeProjectionImplementation(const osg::Matrixd& projection) const;
virtual osg::Matrixd computeRightEyeViewImplementation(const osg::Matrixd& view, double eyeSeperationScale=1.0) const;
void setValue(const std::string& name, const std::string& value);
bool getValue(const std::string& name, std::string& value, bool use_getenv_fallback=true) const;
protected:
virtual ~DisplaySettings();
DisplayType _displayType;
bool _stereo;
StereoMode _stereoMode;
float _eyeSeparation;
float _screenWidth;
float _screenHeight;
float _screenDistance;
SplitStereoHorizontalEyeMapping _splitStereoHorizontalEyeMapping;
int _splitStereoHorizontalSeparation;
SplitStereoVerticalEyeMapping _splitStereoVerticalEyeMapping;
int _splitStereoVerticalSeparation;
bool _splitStereoAutoAdjustAspectRatio;
bool _doubleBuffer;
bool _RGB;
bool _depthBuffer;
unsigned int _minimumNumberAlphaBits;
unsigned int _minimumNumberStencilBits;
unsigned int _minimumNumberAccumRedBits;
unsigned int _minimumNumberAccumGreenBits;
unsigned int _minimumNumberAccumBlueBits;
unsigned int _minimumNumberAccumAlphaBits;
unsigned int _maxNumOfGraphicsContexts;
unsigned int _numMultiSamples;
bool _compileContextsHint;
bool _serializeDrawDispatch;
bool _useSceneViewForStereoHint;
unsigned int _numDatabaseThreadsHint;
unsigned int _numHttpDatabaseThreadsHint;
std::string _application;
unsigned int _maxTexturePoolSize;
unsigned int _maxBufferObjectPoolSize;
ImplicitBufferAttachmentMask _implicitBufferAttachmentRenderMask;
ImplicitBufferAttachmentMask _implicitBufferAttachmentResolveMask;
std::string _glContextVersion;
unsigned int _glContextFlags;
unsigned int _glContextProfileMask;
SwapMethod _swapMethod;
unsigned int _syncSwapBuffers;
VertexBufferHint _vertexBufferHint;
ShaderHint _shaderHint;
std::string _textShaderTechnique;
bool _keystoneHint;
FileNames _keystoneFileNames;
Objects _keystones;
OSXMenubarBehavior _OSXMenubarBehavior;
typedef std::map<std::string, std::string> ValueMap;
mutable OpenThreads::Mutex _valueMapMutex;
mutable ValueMap _valueMap;
};
}
# endif
Matrixd
Referenced
OpenThreads::Mutex
This class provides an object-oriented thread mutex interface.
Definition Mutex:31
osg::ArgumentParser
Definition ArgumentParser:28
osg::DisplaySettings::getUseSceneViewForStereoHint
bool getUseSceneViewForStereoHint() const
Definition DisplaySettings:191
osg::DisplaySettings::setGLContextVersion
void setGLContextVersion(const std::string &version)
Definition DisplaySettings:280
osg::DisplaySettings::getImplicitBufferAttachmentResolveMask
ImplicitBufferAttachmentMask getImplicitBufferAttachmentResolveMask() const
Definition DisplaySettings:254
osg::DisplaySettings::setSerializeDrawDispatch
void setSerializeDrawDispatch(bool serializeDrawDispatch)
Definition DisplaySettings:186
osg::DisplaySettings::getAccumBuffer
bool getAccumBuffer() const
Definition DisplaySettings:173
osg::DisplaySettings::_application
std::string _application
Definition DisplaySettings:413
osg::DisplaySettings::_splitStereoVerticalSeparation
int _splitStereoVerticalSeparation
Definition DisplaySettings:389
osg::DisplaySettings::Objects
std::vector< osg::ref_ptr< osg::Object > > Objects
Definition DisplaySettings:341
osg::DisplaySettings::computeLeftEyeViewImplementation
virtual osg::Matrixd computeLeftEyeViewImplementation(const osg::Matrixd &view, double eyeSeperationScale=1.0) const
osg::DisplaySettings::DisplayType
DisplayType
Definition DisplaySettings:75
osg::DisplaySettings::HEAD_MOUNTED_DISPLAY
@ HEAD_MOUNTED_DISPLAY
Definition DisplaySettings:79
osg::DisplaySettings::MONITOR
@ MONITOR
Definition DisplaySettings:76
osg::DisplaySettings::POWERWALL
@ POWERWALL
Definition DisplaySettings:77
osg::DisplaySettings::REALITY_CENTER
@ REALITY_CENTER
Definition DisplaySettings:78
osg::DisplaySettings::setNumOfHttpDatabaseThreadsHint
void setNumOfHttpDatabaseThreadsHint(unsigned int numThreads)
Definition DisplaySettings:201
osg::DisplaySettings::_screenDistance
float _screenDistance
Definition DisplaySettings:384
osg::DisplaySettings::getGLContextProfileMask
unsigned int getGLContextProfileMask() const
Definition DisplaySettings:295
osg::DisplaySettings::readEnvironmentalVariables
void readEnvironmentalVariables()
osg::DisplaySettings::ShaderHint
ShaderHint
Definition DisplaySettings:315
osg::DisplaySettings::SHADER_GL3
@ SHADER_GL3
Definition DisplaySettings:319
osg::DisplaySettings::SHADER_GL2
@ SHADER_GL2
Definition DisplaySettings:317
osg::DisplaySettings::SHADER_GLES3
@ SHADER_GLES3
Definition DisplaySettings:320
osg::DisplaySettings::SHADER_NONE
@ SHADER_NONE
Definition DisplaySettings:316
osg::DisplaySettings::SHADER_GLES2
@ SHADER_GLES2
Definition DisplaySettings:318
osg::DisplaySettings::setMaxBufferObjectPoolSize
void setMaxBufferObjectPoolSize(unsigned int size)
Definition DisplaySettings:213
osg::DisplaySettings::setImplicitBufferAttachmentMask
void setImplicitBufferAttachmentMask(ImplicitBufferAttachmentMask renderMask=DisplaySettings::DEFAULT_IMPLICIT_BUFFER_ATTACHMENT, ImplicitBufferAttachmentMask resolveMask=DisplaySettings::DEFAULT_IMPLICIT_BUFFER_ATTACHMENT)
Definition DisplaySettings:234
osg::DisplaySettings::getMinimumNumAccumRedBits
unsigned int getMinimumNumAccumRedBits() const
Definition DisplaySettings:169
osg::DisplaySettings::getSwapMethod
SwapMethod getSwapMethod(void)
Definition DisplaySettings:268
osg::DisplaySettings::_maxTexturePoolSize
unsigned int _maxTexturePoolSize
Definition DisplaySettings:415
osg::DisplaySettings::computeLeftEyeProjectionImplementation
virtual osg::Matrixd computeLeftEyeProjectionImplementation(const osg::Matrixd &projection) const
osg::DisplaySettings::_syncSwapBuffers
unsigned int _syncSwapBuffers
Definition DisplaySettings:426
osg::DisplaySettings::setImplicitBufferAttachmentResolveMask
void setImplicitBufferAttachmentResolveMask(ImplicitBufferAttachmentMask implicitBufferAttachmentResolveMask)
Definition DisplaySettings:245
osg::DisplaySettings::getMaxTexturePoolSize
unsigned int getMaxTexturePoolSize() const
Definition DisplaySettings:211
osg::DisplaySettings::getMinimumNumAccumGreenBits
unsigned int getMinimumNumAccumGreenBits() const
Definition DisplaySettings:170
osg::DisplaySettings::setMaxTexturePoolSize
void setMaxTexturePoolSize(unsigned int size)
Definition DisplaySettings:210
osg::DisplaySettings::getMinimumNumAccumBlueBits
unsigned int getMinimumNumAccumBlueBits() const
Definition DisplaySettings:171
osg::DisplaySettings::_minimumNumberStencilBits
unsigned int _minimumNumberStencilBits
Definition DisplaySettings:396
osg::DisplaySettings::setSwapMethod
void setSwapMethod(SwapMethod swapMethod)
Definition DisplaySettings:265
osg::DisplaySettings::setDisplayType
void setDisplayType(DisplayType type)
Definition DisplaySettings:82
osg::DisplaySettings::getDisplayType
DisplayType getDisplayType() const
Definition DisplaySettings:84
osg::DisplaySettings::_minimumNumberAccumAlphaBits
unsigned int _minimumNumberAccumAlphaBits
Definition DisplaySettings:400
osg::DisplaySettings::getSplitStereoAutoAdjustAspectRatio
bool getSplitStereoAutoAdjustAspectRatio() const
Definition DisplaySettings:134
osg::DisplaySettings::setDoubleBuffer
void setDoubleBuffer(bool flag)
Definition DisplaySettings:148
osg::DisplaySettings::getDoubleBuffer
bool getDoubleBuffer() const
Definition DisplaySettings:149
osg::DisplaySettings::setKeystoneFileNames
void setKeystoneFileNames(const FileNames &filenames)
Definition DisplaySettings:337
osg::DisplaySettings::_stereo
bool _stereo
Definition DisplaySettings:379
osg::DisplaySettings::_screenHeight
float _screenHeight
Definition DisplaySettings:383
osg::DisplaySettings::getMinimumNumStencilBits
unsigned int getMinimumNumStencilBits() const
Definition DisplaySettings:165
osg::DisplaySettings::_minimumNumberAccumBlueBits
unsigned int _minimumNumberAccumBlueBits
Definition DisplaySettings:399
osg::DisplaySettings::_minimumNumberAccumGreenBits
unsigned int _minimumNumberAccumGreenBits
Definition DisplaySettings:398
osg::DisplaySettings::getGLContextVersion
const std::string getGLContextVersion() const
Definition DisplaySettings:283
osg::DisplaySettings::_textShaderTechnique
std::string _textShaderTechnique
Definition DisplaySettings:430
osg::DisplaySettings::setSplitStereoVerticalSeparation
void setSplitStereoVerticalSeparation(int s)
Definition DisplaySettings:130
osg::DisplaySettings::_doubleBuffer
bool _doubleBuffer
Definition DisplaySettings:392
osg::DisplaySettings::_numMultiSamples
unsigned int _numMultiSamples
Definition DisplaySettings:404
osg::DisplaySettings::setMinimumNumAlphaBits
void setMinimumNumAlphaBits(unsigned int bits)
Definition DisplaySettings:160
osg::DisplaySettings::setMinimumNumStencilBits
void setMinimumNumStencilBits(unsigned int bits)
Definition DisplaySettings:164
osg::DisplaySettings::setSyncSwapBuffers
void setSyncSwapBuffers(unsigned int numFrames=0)
Definition DisplaySettings:272
osg::DisplaySettings::ImplicitBufferAttachment
ImplicitBufferAttachment
Definition DisplaySettings:225
osg::DisplaySettings::DEFAULT_IMPLICIT_BUFFER_ATTACHMENT
@ DEFAULT_IMPLICIT_BUFFER_ATTACHMENT
Definition DisplaySettings:229
osg::DisplaySettings::IMPLICIT_STENCIL_BUFFER_ATTACHMENT
@ IMPLICIT_STENCIL_BUFFER_ATTACHMENT
Definition DisplaySettings:227
osg::DisplaySettings::IMPLICIT_COLOR_BUFFER_ATTACHMENT
@ IMPLICIT_COLOR_BUFFER_ATTACHMENT
Definition DisplaySettings:228
osg::DisplaySettings::IMPLICIT_DEPTH_BUFFER_ATTACHMENT
@ IMPLICIT_DEPTH_BUFFER_ATTACHMENT
Definition DisplaySettings:226
osg::DisplaySettings::setImplicitBufferAttachmentRenderMask
void setImplicitBufferAttachmentRenderMask(ImplicitBufferAttachmentMask implicitBufferAttachmentRenderMask)
Definition DisplaySettings:240
osg::DisplaySettings::ValueMap
std::map< std::string, std::string > ValueMap
Definition DisplaySettings:438
osg::DisplaySettings::SplitStereoHorizontalEyeMapping
SplitStereoHorizontalEyeMapping
Definition DisplaySettings:110
osg::DisplaySettings::LEFT_EYE_LEFT_VIEWPORT
@ LEFT_EYE_LEFT_VIEWPORT
Definition DisplaySettings:111
osg::DisplaySettings::LEFT_EYE_RIGHT_VIEWPORT
@ LEFT_EYE_RIGHT_VIEWPORT
Definition DisplaySettings:112
osg::DisplaySettings::getStereoMode
StereoMode getStereoMode() const
Definition DisplaySettings:104
osg::DisplaySettings::getApplication
const std::string & getApplication()
Definition DisplaySettings:207
osg::DisplaySettings::ImplicitBufferAttachmentMask
int ImplicitBufferAttachmentMask
Definition DisplaySettings:232
osg::DisplaySettings::_maxBufferObjectPoolSize
unsigned int _maxBufferObjectPoolSize
Definition DisplaySettings:416
osg::DisplaySettings::FileNames
std::vector< std::string > FileNames
Definition DisplaySettings:336
osg::DisplaySettings::setDepthBuffer
void setDepthBuffer(bool flag)
Definition DisplaySettings:156
osg::DisplaySettings::getValue
bool getValue(const std::string &name, std::string &value, bool use_getenv_fallback=true) const
osg::DisplaySettings::setScreenDistance
void setScreenDistance(float distance)
Definition DisplaySettings:143
osg::DisplaySettings::setNumOfDatabaseThreadsHint
void setNumOfDatabaseThreadsHint(unsigned int numThreads)
Definition DisplaySettings:195
osg::DisplaySettings::setScreenHeight
void setScreenHeight(float height)
Definition DisplaySettings:140
osg::DisplaySettings::getScreenWidth
float getScreenWidth() const
Definition DisplaySettings:138
osg::DisplaySettings::_shaderHint
ShaderHint _shaderHint
Definition DisplaySettings:429
osg::DisplaySettings::getDepthBuffer
bool getDepthBuffer() const
Definition DisplaySettings:157
osg::DisplaySettings::getEyeSeparation
float getEyeSeparation() const
Definition DisplaySettings:107
osg::DisplaySettings::getMaxNumberOfGraphicsContexts
unsigned int getMaxNumberOfGraphicsContexts() const
osg::DisplaySettings::setRGB
void setRGB(bool flag)
Definition DisplaySettings:152
osg::DisplaySettings::_valueMap
ValueMap _valueMap
Definition DisplaySettings:441
osg::DisplaySettings::getMultiSamples
bool getMultiSamples() const
Definition DisplaySettings:181
osg::DisplaySettings::setUseSceneViewForStereoHint
void setUseSceneViewForStereoHint(bool hint)
Definition DisplaySettings:190
osg::DisplaySettings::getMinimumNumAccumAlphaBits
unsigned int getMinimumNumAccumAlphaBits() const
Definition DisplaySettings:172
osg::DisplaySettings::getKeystoneHint
bool getKeystoneHint() const
Definition DisplaySettings:334
osg::DisplaySettings::setSplitStereoAutoAdjustAspectRatio
void setSplitStereoAutoAdjustAspectRatio(bool flag)
Definition DisplaySettings:133
osg::DisplaySettings::getMaxBufferObjectPoolSize
unsigned int getMaxBufferObjectPoolSize() const
Definition DisplaySettings:214
osg::DisplaySettings::_swapMethod
SwapMethod _swapMethod
Definition DisplaySettings:425
osg::DisplaySettings::setVertexBufferHint
void setVertexBufferHint(VertexBufferHint gi)
Definition DisplaySettings:310
osg::DisplaySettings::_splitStereoVerticalEyeMapping
SplitStereoVerticalEyeMapping _splitStereoVerticalEyeMapping
Definition DisplaySettings:388
osg::DisplaySettings::getNvOptimusEnablement
int getNvOptimusEnablement() const
osg::DisplaySettings::getKeystones
const Objects & getKeystones() const
Definition DisplaySettings:344
osg::DisplaySettings::setOSXMenubarBehavior
void setOSXMenubarBehavior(OSXMenubarBehavior hint)
Definition DisplaySettings:354
osg::DisplaySettings::_minimumNumberAccumRedBits
unsigned int _minimumNumberAccumRedBits
Definition DisplaySettings:397
osg::DisplaySettings::setDisplaySettings
void setDisplaySettings(const DisplaySettings &vs)
osg::DisplaySettings::_serializeDrawDispatch
bool _serializeDrawDispatch
Definition DisplaySettings:407
osg::DisplaySettings::_keystoneFileNames
FileNames _keystoneFileNames
Definition DisplaySettings:433
osg::DisplaySettings::setApplication
void setApplication(const std::string &application)
Definition DisplaySettings:206
osg::DisplaySettings::setSplitStereoVerticalEyeMapping
void setSplitStereoVerticalEyeMapping(SplitStereoVerticalEyeMapping m)
Definition DisplaySettings:127
osg::DisplaySettings::StereoMode
StereoMode
Definition DisplaySettings:91
osg::DisplaySettings::VERTICAL_INTERLACE
@ VERTICAL_INTERLACE
Definition DisplaySettings:99
osg::DisplaySettings::CHECKERBOARD
@ CHECKERBOARD
Definition DisplaySettings:100
osg::DisplaySettings::VERTICAL_SPLIT
@ VERTICAL_SPLIT
Definition DisplaySettings:95
osg::DisplaySettings::QUAD_BUFFER
@ QUAD_BUFFER
Definition DisplaySettings:92
osg::DisplaySettings::HORIZONTAL_INTERLACE
@ HORIZONTAL_INTERLACE
Definition DisplaySettings:98
osg::DisplaySettings::ANAGLYPHIC
@ ANAGLYPHIC
Definition DisplaySettings:93
osg::DisplaySettings::LEFT_EYE
@ LEFT_EYE
Definition DisplaySettings:96
osg::DisplaySettings::RIGHT_EYE
@ RIGHT_EYE
Definition DisplaySettings:97
osg::DisplaySettings::HORIZONTAL_SPLIT
@ HORIZONTAL_SPLIT
Definition DisplaySettings:94
osg::DisplaySettings::getSplitStereoHorizontalEyeMapping
SplitStereoHorizontalEyeMapping getSplitStereoHorizontalEyeMapping() const
Definition DisplaySettings:116
osg::DisplaySettings::_compileContextsHint
bool _compileContextsHint
Definition DisplaySettings:406
osg::DisplaySettings::setShaderHint
void setShaderHint(ShaderHint hint, bool setShaderValues=true)
osg::DisplaySettings::_depthBuffer
bool _depthBuffer
Definition DisplaySettings:394
osg::DisplaySettings::_valueMapMutex
OpenThreads::Mutex _valueMapMutex
Definition DisplaySettings:440
osg::DisplaySettings::getStereo
bool getStereo() const
Definition DisplaySettings:88
osg::DisplaySettings::_screenWidth
float _screenWidth
Definition DisplaySettings:382
osg::DisplaySettings::computeRightEyeProjectionImplementation
virtual osg::Matrixd computeRightEyeProjectionImplementation(const osg::Matrixd &projection) const
osg::DisplaySettings::getScreenDistance
float getScreenDistance() const
Definition DisplaySettings:144
osg::DisplaySettings::readCommandLine
void readCommandLine(ArgumentParser &arguments)
osg::DisplaySettings::_vertexBufferHint
VertexBufferHint _vertexBufferHint
Definition DisplaySettings:428
osg::DisplaySettings::getCompileContextsHint
bool getCompileContextsHint() const
Definition DisplaySettings:184
osg::DisplaySettings::_stereoMode
StereoMode _stereoMode
Definition DisplaySettings:380
osg::DisplaySettings::getStencilBuffer
bool getStencilBuffer() const
Definition DisplaySettings:166
osg::DisplaySettings::OSXMenubarBehavior
OSXMenubarBehavior
Definition DisplaySettings:347
osg::DisplaySettings::MENUBAR_FORCE_SHOW
@ MENUBAR_FORCE_SHOW
Definition DisplaySettings:350
osg::DisplaySettings::MENUBAR_FORCE_HIDE
@ MENUBAR_FORCE_HIDE
Definition DisplaySettings:349
osg::DisplaySettings::MENUBAR_AUTO_HIDE
@ MENUBAR_AUTO_HIDE
Definition DisplaySettings:348
osg::DisplaySettings::computeRightEyeViewImplementation
virtual osg::Matrixd computeRightEyeViewImplementation(const osg::Matrixd &view, double eyeSeperationScale=1.0) const
osg::DisplaySettings::_numHttpDatabaseThreadsHint
unsigned int _numHttpDatabaseThreadsHint
Definition DisplaySettings:411
osg::DisplaySettings::instance
static ref_ptr< DisplaySettings > & instance()
osg::DisplaySettings::_glContextVersion
std::string _glContextVersion
Definition DisplaySettings:421
osg::DisplaySettings::getKeystones
Objects & getKeystones()
Definition DisplaySettings:343
osg::DisplaySettings::merge
void merge(const DisplaySettings &vs)
osg::DisplaySettings::setValue
void setValue(const std::string &name, const std::string &value)
osg::DisplaySettings::getNumMultiSamples
unsigned int getNumMultiSamples() const
Definition DisplaySettings:180
osg::DisplaySettings::SplitStereoVerticalEyeMapping
SplitStereoVerticalEyeMapping
Definition DisplaySettings:122
osg::DisplaySettings::LEFT_EYE_BOTTOM_VIEWPORT
@ LEFT_EYE_BOTTOM_VIEWPORT
Definition DisplaySettings:124
osg::DisplaySettings::LEFT_EYE_TOP_VIEWPORT
@ LEFT_EYE_TOP_VIEWPORT
Definition DisplaySettings:123
osg::DisplaySettings::_splitStereoHorizontalEyeMapping
SplitStereoHorizontalEyeMapping _splitStereoHorizontalEyeMapping
Definition DisplaySettings:386
osg::DisplaySettings::getSplitStereoVerticalEyeMapping
SplitStereoVerticalEyeMapping getSplitStereoVerticalEyeMapping() const
Definition DisplaySettings:128
osg::DisplaySettings::_displayType
DisplayType _displayType
Definition DisplaySettings:378
osg::DisplaySettings::getNumOfHttpDatabaseThreadsHint
unsigned int getNumOfHttpDatabaseThreadsHint() const
Definition DisplaySettings:204
osg::DisplaySettings::setStereoMode
void setStereoMode(StereoMode mode)
Definition DisplaySettings:103
osg::DisplaySettings::getKeystoneFileNames
const FileNames & getKeystoneFileNames() const
Definition DisplaySettings:339
osg::DisplaySettings::setKeystones
void setKeystones(const Objects &objects)
Definition DisplaySettings:342
osg::DisplaySettings::_numDatabaseThreadsHint
unsigned int _numDatabaseThreadsHint
Definition DisplaySettings:410
osg::DisplaySettings::_maxNumOfGraphicsContexts
unsigned int _maxNumOfGraphicsContexts
Definition DisplaySettings:402
osg::DisplaySettings::setGLContextProfileMask
void setGLContextProfileMask(unsigned int mask)
Definition DisplaySettings:292
osg::DisplaySettings::_minimumNumberAlphaBits
unsigned int _minimumNumberAlphaBits
Definition DisplaySettings:395
osg::DisplaySettings::_useSceneViewForStereoHint
bool _useSceneViewForStereoHint
Definition DisplaySettings:408
osg::DisplaySettings::getScreenHeight
float getScreenHeight() const
Definition DisplaySettings:141
osg::DisplaySettings::getTextShaderTechnique
const std::string & getTextShaderTechnique() const
Definition DisplaySettings:330
osg::DisplaySettings::setCompileContextsHint
void setCompileContextsHint(bool useCompileContexts)
Definition DisplaySettings:183
osg::DisplaySettings::VertexBufferHint
VertexBufferHint
Definition DisplaySettings:304
osg::DisplaySettings::NO_PREFERENCE
@ NO_PREFERENCE
Definition DisplaySettings:305
osg::DisplaySettings::VERTEX_ARRAY_OBJECT
@ VERTEX_ARRAY_OBJECT
Definition DisplaySettings:307
osg::DisplaySettings::VERTEX_BUFFER_OBJECT
@ VERTEX_BUFFER_OBJECT
Definition DisplaySettings:306
osg::DisplaySettings::getRGB
bool getRGB() const
Definition DisplaySettings:153
osg::DisplaySettings::setNumMultiSamples
void setNumMultiSamples(unsigned int samples)
Definition DisplaySettings:179
osg::DisplaySettings::getKeystoneFileNames
FileNames & getKeystoneFileNames()
Definition DisplaySettings:338
osg::DisplaySettings::_implicitBufferAttachmentResolveMask
ImplicitBufferAttachmentMask _implicitBufferAttachmentResolveMask
Definition DisplaySettings:419
osg::DisplaySettings::_RGB
bool _RGB
Definition DisplaySettings:393
osg::DisplaySettings::getAlphaBuffer
bool getAlphaBuffer() const
Definition DisplaySettings:162
osg::DisplaySettings::setDefaults
void setDefaults()
osg::DisplaySettings::getOSXMenubarBehavior
OSXMenubarBehavior getOSXMenubarBehavior() const
Definition DisplaySettings:353
osg::DisplaySettings::~DisplaySettings
virtual ~DisplaySettings()
osg::DisplaySettings::DisplaySettings
DisplaySettings()
Definition DisplaySettings:41
osg::DisplaySettings::SwapMethod
SwapMethod
Definition DisplaySettings:257
osg::DisplaySettings::SWAP_COPY
@ SWAP_COPY
Definition DisplaySettings:260
osg::DisplaySettings::SWAP_EXCHANGE
@ SWAP_EXCHANGE
Definition DisplaySettings:259
osg::DisplaySettings::SWAP_UNDEFINED
@ SWAP_UNDEFINED
Definition DisplaySettings:261
osg::DisplaySettings::SWAP_DEFAULT
@ SWAP_DEFAULT
Definition DisplaySettings:258
osg::DisplaySettings::getSplitStereoVerticalSeparation
int getSplitStereoVerticalSeparation() const
Definition DisplaySettings:131
osg::DisplaySettings::_implicitBufferAttachmentRenderMask
ImplicitBufferAttachmentMask _implicitBufferAttachmentRenderMask
Definition DisplaySettings:418
osg::DisplaySettings::setScreenWidth
void setScreenWidth(float width)
Definition DisplaySettings:137
osg::DisplaySettings::getSplitStereoHorizontalSeparation
int getSplitStereoHorizontalSeparation() const
Definition DisplaySettings:119
osg::DisplaySettings::getSerializeDrawDispatch
bool getSerializeDrawDispatch() const
Definition DisplaySettings:187
osg::DisplaySettings::getNumOfDatabaseThreadsHint
unsigned int getNumOfDatabaseThreadsHint() const
Definition DisplaySettings:198
osg::DisplaySettings::DisplaySettings
DisplaySettings(const DisplaySettings &vs)
osg::DisplaySettings::_keystoneHint
bool _keystoneHint
Definition DisplaySettings:432
osg::DisplaySettings::setStereo
void setStereo(bool on)
Definition DisplaySettings:87
osg::DisplaySettings::_keystones
Objects _keystones
Definition DisplaySettings:434
osg::DisplaySettings::_eyeSeparation
float _eyeSeparation
Definition DisplaySettings:381
osg::DisplaySettings::getMinimumNumAlphaBits
unsigned int getMinimumNumAlphaBits() const
Definition DisplaySettings:161
osg::DisplaySettings::_splitStereoAutoAdjustAspectRatio
bool _splitStereoAutoAdjustAspectRatio
Definition DisplaySettings:390
osg::DisplaySettings::setMaxNumberOfGraphicsContexts
void setMaxNumberOfGraphicsContexts(unsigned int num)
osg::DisplaySettings::setMinimumNumAccumBits
void setMinimumNumAccumBits(unsigned int red, unsigned int green, unsigned int blue, unsigned int alpha)
osg::DisplaySettings::_glContextFlags
unsigned int _glContextFlags
Definition DisplaySettings:422
osg::DisplaySettings::getImplicitBufferAttachmentRenderMask
ImplicitBufferAttachmentMask getImplicitBufferAttachmentRenderMask() const
Definition DisplaySettings:251
osg::DisplaySettings::setEyeSeparation
void setEyeSeparation(float eyeSeparation)
Definition DisplaySettings:106
osg::DisplaySettings::getVertexBufferHint
VertexBufferHint getVertexBufferHint() const
Definition DisplaySettings:311
osg::DisplaySettings::setTextShaderTechnique
void setTextShaderTechnique(const std::string &str)
Definition DisplaySettings:329
osg::DisplaySettings::_splitStereoHorizontalSeparation
int _splitStereoHorizontalSeparation
Definition DisplaySettings:387
osg::DisplaySettings::DisplaySettings
DisplaySettings(ArgumentParser &arguments)
Definition DisplaySettings:48
osg::DisplaySettings::setGLContextFlags
void setGLContextFlags(unsigned int flags)
Definition DisplaySettings:286
osg::DisplaySettings::_OSXMenubarBehavior
OSXMenubarBehavior _OSXMenubarBehavior
Definition DisplaySettings:436
osg::DisplaySettings::getSyncSwapBuffers
unsigned int getSyncSwapBuffers() const
Definition DisplaySettings:275
osg::DisplaySettings::getGLContextFlags
unsigned int getGLContextFlags() const
Definition DisplaySettings:289
osg::DisplaySettings::getShaderHint
ShaderHint getShaderHint() const
Definition DisplaySettings:326
osg::DisplaySettings::_glContextProfileMask
unsigned int _glContextProfileMask
Definition DisplaySettings:423
osg::DisplaySettings::setNvOptimusEnablement
void setNvOptimusEnablement(int value)
osg::DisplaySettings::setKeystoneHint
void setKeystoneHint(bool enabled)
Definition DisplaySettings:333
osg::DisplaySettings::setSplitStereoHorizontalSeparation
void setSplitStereoHorizontalSeparation(int s)
Definition DisplaySettings:118
osg::DisplaySettings::setSplitStereoHorizontalEyeMapping
void setSplitStereoHorizontalEyeMapping(SplitStereoHorizontalEyeMapping m)
Definition DisplaySettings:115
osg::Matrixd
Definition Matrixd:27
osg::Referenced
Definition Referenced:44
osg::Referenced::Referenced
Referenced()
osg::ref_ptr
Definition ref_ptr:32
osg
Definition AlphaFunc:19
OSG_EXPORT
#define OSG_EXPORT
Definition osg/Export:39
ref_ptr