osg.DisplaySettings¶
-
class
osg.DisplaySettings¶ Represents: c++ class Wraps: osg::DisplaySettings osg.DisplaySettingsclass for encapsulating what visuals are required and have been set up, and the status of stereo viewing.Constructors:
-
osg.DisplaySettings()¶
-
osg.DisplaySettings(osg.DisplaySettings other) -
Parameters: other ( osg.DisplaySettings) –
Methods:
-
:
setDisplaySettings(osg.DisplaySettings ds)¶ -
Parameters: ds ( osg.DisplaySettings) –
-
:
merge(osg.DisplaySettings ds)¶ -
Parameters: ds ( osg.DisplaySettings) –
-
:
setDefaults()¶
-
:
setDisplayType(osg.DisplaySettings.DisplayType dt)¶ -
Parameters: dt ( osg.DisplaySettings.DisplayType) –
-
:
getDisplayType()¶ -
Return type: osg.DisplaySettings.DisplayType
-
:
setStereo(bool b)¶ -
Parameters: b ( bool) –
-
:
getStereo()¶ -
Return type: bool
-
:
setStereoMode(osg.DisplaySettings.StereoMode sm)¶ -
Parameters: sm ( osg.DisplaySettings.StereoMode) –
-
:
getStereoMode()¶ -
Return type: osg.DisplaySettings.StereoMode
-
:
setEyeSeparation(double eyeSeparation)¶ -
Parameters: eyeSeparation ( double) –
-
:
getEyeSeparation()¶ -
Return type: double
-
:
setKeystoneHint(bool kh)¶ -
Parameters: kh ( bool) –
-
:
getKeystoneHint()¶ -
Return type: bool
-
:
getKeystones()¶ -
Return type: osg.DisplaySettings.Objects
-
:
setSplitStereoHorizontalEyeMapping(osg.DisplaySettings.SplitStereoHorizontalEyeMapping m)¶ -
Parameters: m ( osg.DisplaySettings.SplitStereoHorizontalEyeMapping) –
-
:
getSplitStereoHorizontalEyeMapping()¶ -
Return type: osg.DisplaySettings.SplitStereoHorizontalEyeMapping
-
:
setSplitStereoHorizontalSeparation(int s)¶ -
Parameters: s ( int) –
-
:
getSplitStereoHorizontalSeparation()¶ -
Return type: int
-
:
setSplitStereoVerticalEyeMapping(osg.DisplaySettings.SplitStereoVerticalEyeMapping s)¶ -
Parameters: s ( osg.DisplaySettings.SplitStereoVerticalEyeMapping) –
-
:
getSplitStereoVerticalEyeMapping()¶ -
Return type: osg.DisplaySettings.SplitStereoVerticalEyeMapping
-
:
setSplitStereoVerticalSeparation(int s)¶ -
Parameters: s ( int) –
-
:
getSplitStereoVerticalSeparation()¶ -
Return type: int
-
:
setSplitStereoAutoAdjustAspectRatio(bool flag)¶ -
Parameters: flag ( bool) –
-
:
getSplitStereoAutoAdjustAspectRatio()¶ -
Return type: bool
-
:
setScreenWidth(double width)¶ -
Parameters: width ( double) –
-
:
getScreenWidth()¶ -
Return type: double
-
:
setScreenHeight(double height)¶ -
Parameters: height ( double) –
-
:
getScreenHeight()¶ -
Return type: double
-
:
setScreenDistance(double distance)¶ -
Parameters: distance ( double) –
-
:
getScreenDistance()¶ -
Return type: double
-
:
setDoubleBuffer(bool flag)¶ -
Parameters: flag ( bool) –
-
:
getDoubleBuffer()¶ -
Return type: bool
-
:
setRGB(bool flag)¶ -
Parameters: flag ( bool) –
-
:
getRGB()¶ -
Return type: bool
-
:
setDepthBuffer(bool flag)¶ -
Parameters: flag ( bool) –
-
:
getDepthBuffer()¶ -
Return type: bool
-
:
setMinimumNumAlphaBits(unsigned bits)¶ -
Parameters: bits ( unsigned) –
-
:
getMinimumNumAlphaBits()¶ -
Return type: unsigned
-
:
getAlphaBuffer()¶ -
Return type: bool
-
:
setMinimumNumStencilBits(unsigned bits)¶ -
Parameters: bits ( unsigned) –
-
:
getMinimumNumStencilBits()¶ -
Return type: unsigned
-
:
getStencilBuffer()¶ -
Return type: bool
-
:
setMinimumNumAccumBits(unsigned red, unsigned green, unsigned blue, unsigned alpha)¶ -
Parameters: - red (
unsigned) – - green (
unsigned) – - blue (
unsigned) – - alpha (
unsigned) –
- red (
-
:
getMinimumNumAccumRedBits()¶ -
Return type: unsigned
-
:
getMinimumNumAccumGreenBits()¶ -
Return type: unsigned
-
:
getMinimumNumAccumBlueBits()¶ -
Return type: unsigned
-
:
getMinimumNumAccumAlphaBits()¶ -
Return type: unsigned
-
:
getAccumBuffer()¶ -
Return type: bool
-
:
setMaxNumberOfGraphicsContexts(unsigned num)¶ -
Parameters: num ( unsigned) –
-
:
getMaxNumberOfGraphicsContexts()¶ -
Return type: unsigned
-
:
setNumMultiSamples(unsigned samples)¶ -
Parameters: samples ( unsigned) –
-
:
getNumMultiSamples()¶ -
Return type: unsigned
-
:
getMultiSamples()¶ -
Return type: bool
-
:
setCompileContextsHint(bool useCompileContexts)¶ -
Parameters: useCompileContexts ( bool) –
-
:
getCompileContextsHint()¶ -
Return type: bool
-
:
setSerializeDrawDispatch(bool serializeDrawDispatch)¶ -
Parameters: serializeDrawDispatch ( bool) –
-
:
getSerializeDrawDispatch()¶ -
Return type: bool
-
:
setUseSceneViewForStereoHint(bool hint)¶ -
Parameters: hint ( bool) –
-
:
getUseSceneViewForStereoHint()¶ -
Return type: bool
-
:
setNumOfDatabaseThreadsHint(unsigned numThreads)¶ Set the hint for the total number of threads in the
osgDB.DatbasePagerset up, inclusive of the number of http dedicated threads.Parameters: numThreads ( unsigned) –
-
:
getNumOfDatabaseThreadsHint()¶ Get the hint for total number of threads in the
osgDB.DatbasePagerset up, inclusive of the number of http dedicated threads.Return type: unsigned
-
:
setApplication(std.string application)¶ -
Parameters: application ( std.string) –
-
:
getApplication()¶ -
Return type: std.string
-
:
setMaxTexturePoolSize(unsigned size)¶ -
Parameters: size ( unsigned) –
-
:
getMaxTexturePoolSize()¶ -
Return type: unsigned
-
:
setMaxBufferObjectPoolSize(unsigned size)¶ -
Parameters: size ( unsigned) –
-
:
getMaxBufferObjectPoolSize()¶ -
Return type: unsigned
-
:
setImplicitBufferAttachmentMask(unsigned renderMask, unsigned resolveMask)¶ -
Parameters: - renderMask (
unsigned) – - resolveMask (
unsigned) –
- renderMask (
-
:
setImplicitBufferAttachmentRenderMask(unsigned implicitBufferAttachmentRenderMask)¶ -
Parameters: implicitBufferAttachmentRenderMask ( unsigned) –
-
:
setImplicitBufferAttachmentResolveMask(unsigned implicitBufferAttachmentResolveMask)¶ -
Parameters: implicitBufferAttachmentResolveMask ( unsigned) –
-
:
getImplicitBufferAttachmentRenderMask()¶ -
Return type: unsigned
-
:
getImplicitBufferAttachmentResolveMask()¶ -
Return type: unsigned
Static Methods:
-
.
instance()¶ Maintain a
osg.DisplaySettingssingleton for objects to query at runtime.Return type: osg.DisplaySettings
-