osg.GraphicsContext.Traits¶
-
class
osg.GraphicsContext.Traits¶ Represents: c++ class Wraps: osg::GraphicsContext::Traits osg.GraphicsContextTraits object provides the specification of what type of graphics context is required. In OSGosg.GraphicsContext.Traitsis a C++ structure, so the are a number of setters and getters for some members to use in Lua.Constructors:
-
osg.GraphicsContext.Traits()¶
-
osg.GraphicsContext.Traits(osg.DisplaySettings ds) -
Parameters: ds ( osg.DisplaySettings) –
Methods:
-
:
setX(int x)¶ -
Parameters: x ( int) –
-
:
getX()¶ -
Return type: int
-
:
setY(int y)¶ -
Parameters: y ( int) –
-
:
getY()¶ -
Return type: int
-
:
setWidth(int width)¶ -
Parameters: width ( int) –
-
:
getWidth()¶ -
Return type: int
-
:
setHeight(int height)¶ -
Parameters: height ( int) –
-
:
getHeight()¶ -
Return type: int
-
:
setWindowName(std.string windowName)¶ -
Parameters: windowName ( std.string) –
-
:
getWindowName()¶ -
Return type: std.string
-
:
setWindowDecoration(bool b)¶ -
Parameters: b ( bool) –
-
:
getWindowDecoration()¶ -
Return type: bool
-
:
setSupportsResize(bool b)¶ -
Parameters: b ( bool) –
-
:
getSupportsResize()¶ -
Return type: bool
-
:
setRed(unsigned red)¶ Buffer depth,
0equals off.Parameters: red ( unsigned) –
-
:
getRed()¶ -
Return type: unsigned
-
:
setBlue(unsigned blue)¶ Buffer depth,
0equals off.Parameters: blue ( unsigned) –
-
:
getBlue()¶ -
Return type: unsigned
-
:
setGreen(unsigned green)¶ Buffer depth,
0equals off.Parameters: green ( unsigned) –
-
:
getGreen()¶ -
Return type: unsigned
-
:
setAlpha(unsigned alpha)¶ Buffer depth,
0equals off.Parameters: alpha ( unsigned) –
-
:
getAlpha()¶ -
Return type: unsigned
-
:
setDepth(unsigned depth)¶ Buffer depth,
0equals off.Parameters: depth ( unsigned) –
-
:
getDepth()¶ -
Return type: unsigned
-
:
setStencil(unsigned stencil)¶ Buffer depth,
0equals off.Parameters: stencil ( unsigned) –
-
:
getStencil()¶ -
Return type: unsigned
-
:
setSampleBuffers(unsigned sampleBuffers)¶ -
Parameters: sampleBuffers ( unsigned) –
-
:
getSampleBuffers()¶ -
Return type: unsigned
-
:
setSamples(unsigned samples)¶ -
Parameters: samples ( unsigned) –
-
:
getSamples()¶ -
Return type: unsigned
-
:
setPBuffer(bool pbuffer)¶ -
Parameters: pbuffer ( bool) –
-
:
getPBuffer()¶ -
Return type: bool
-
:
setQuadBufferStereo(bool quadBufferStereo)¶ -
Parameters: quadBufferStereo ( bool) –
-
:
getQuadBufferStereo()¶ -
Return type: bool
-
:
setDoubleBuffer(bool doubleBuffer)¶ -
Parameters: doubleBuffer ( bool) –
-
:
getDoubleBuffer()¶ -
Return type: bool
-
:
setTarget(unsigned target)¶ -
Parameters: target ( unsigned) –
-
:
getTarget()¶ -
Return type: unsigned
-
:
setFormat(unsigned format)¶ -
Parameters: format ( unsigned) –
-
:
getFormat()¶ -
Return type: unsigned
-
:
setLevel(unsigned level)¶ -
Parameters: level ( unsigned) –
-
:
getLevel()¶ -
Return type: unsigned
-
:
setFace(unsigned face)¶ -
Parameters: face ( unsigned) –
-
:
getFace()¶ -
Return type: unsigned
-
:
setMipMapGeneration(unsigned mipMapGeneration)¶ -
Parameters: mipMapGeneration ( unsigned) –
-
:
getMipMapGeneration()¶ -
Return type: unsigned
-
:
setVSync(bool vsync)¶ -
Parameters: vsync ( bool) –
-
:
getVSync()¶ -
Return type: bool
-
:
setAffinity(OpenThreads.Affinity affinity)¶ Hint of what affinity to use for any threads associated with the
osg.GraphicsContextcreated using theseosg.GraphicsContext.Traits.Parameters: affinity ( OpenThreads.Affinity) –
-
:
getAffinity()¶ -
Return type: OpenThreads.Affinity
-
:
setGLContextVersion(std.string version)¶ -
Parameters: version ( std.string) –
-
:
getGLContextVersion()¶ -
Return type: std.string
-
Parameters: sharedContext ( osg.GraphicsContext) –
-
Return type: osg.GraphicsContext
-