osg.GraphicsContext.Traits¶
-
class
osg.GraphicsContext.
Traits
¶ Represents: c++ class Wraps: osg::GraphicsContext::Traits osg.GraphicsContext
Traits object provides the specification of what type of graphics context is required. In OSGosg.GraphicsContext.Traits
is 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) -
Параметры: ds (osg.DisplaySettings) –
Methods:
-
:
setX
(int x)¶ -
Параметры: x (int) –
-
:
getX
()¶ -
Тип результата: int
-
:
setY
(int y)¶ -
Параметры: y (int) –
-
:
getY
()¶ -
Тип результата: int
-
:
setWidth
(int width)¶ -
Параметры: width (int) –
-
:
getWidth
()¶ -
Тип результата: int
-
:
setHeight
(int height)¶ -
Параметры: height (int) –
-
:
getHeight
()¶ -
Тип результата: int
-
:
setWindowName
(std.string windowName)¶ -
Параметры: windowName (std.string) –
-
:
getWindowName
()¶ -
Тип результата: std.string
-
:
setWindowDecoration
(bool b)¶ -
Параметры: b (bool) –
-
:
getWindowDecoration
()¶ -
Тип результата: bool
-
:
setSupportsResize
(bool b)¶ -
Параметры: b (bool) –
-
:
getSupportsResize
()¶ -
Тип результата: bool
-
:
setRed
(unsigned red)¶ Buffer depth,
0
equals off.Параметры: red (unsigned) –
-
:
getRed
()¶ -
Тип результата: unsigned
-
:
setBlue
(unsigned blue)¶ Buffer depth,
0
equals off.Параметры: blue (unsigned) –
-
:
getBlue
()¶ -
Тип результата: unsigned
-
:
setGreen
(unsigned green)¶ Buffer depth,
0
equals off.Параметры: green (unsigned) –
-
:
getGreen
()¶ -
Тип результата: unsigned
-
:
setAlpha
(unsigned alpha)¶ Buffer depth,
0
equals off.Параметры: alpha (unsigned) –
-
:
getAlpha
()¶ -
Тип результата: unsigned
-
:
setDepth
(unsigned depth)¶ Buffer depth,
0
equals off.Параметры: depth (unsigned) –
-
:
getDepth
()¶ -
Тип результата: unsigned
-
:
setStencil
(unsigned stencil)¶ Buffer depth,
0
equals off.Параметры: stencil (unsigned) –
-
:
getStencil
()¶ -
Тип результата: unsigned
-
:
setSampleBuffers
(unsigned sampleBuffers)¶ -
Параметры: sampleBuffers (unsigned) –
-
:
getSampleBuffers
()¶ -
Тип результата: unsigned
-
:
setSamples
(unsigned samples)¶ -
Параметры: samples (unsigned) –
-
:
getSamples
()¶ -
Тип результата: unsigned
-
:
setPBuffer
(bool pbuffer)¶ -
Параметры: pbuffer (bool) –
-
:
getPBuffer
()¶ -
Тип результата: bool
-
:
setQuadBufferStereo
(bool quadBufferStereo)¶ -
Параметры: quadBufferStereo (bool) –
-
:
getQuadBufferStereo
()¶ -
Тип результата: bool
-
:
setDoubleBuffer
(bool doubleBuffer)¶ -
Параметры: doubleBuffer (bool) –
-
:
getDoubleBuffer
()¶ -
Тип результата: bool
-
:
setTarget
(unsigned target)¶ -
Параметры: target (unsigned) –
-
:
getTarget
()¶ -
Тип результата: unsigned
-
:
setFormat
(unsigned format)¶ -
Параметры: format (unsigned) –
-
:
getFormat
()¶ -
Тип результата: unsigned
-
:
setLevel
(unsigned level)¶ -
Параметры: level (unsigned) –
-
:
getLevel
()¶ -
Тип результата: unsigned
-
:
setFace
(unsigned face)¶ -
Параметры: face (unsigned) –
-
:
getFace
()¶ -
Тип результата: unsigned
-
:
setMipMapGeneration
(unsigned mipMapGeneration)¶ -
Параметры: mipMapGeneration (unsigned) –
-
:
getMipMapGeneration
()¶ -
Тип результата: unsigned
-
:
setVSync
(bool vsync)¶ -
Параметры: vsync (bool) –
-
:
getVSync
()¶ -
Тип результата: bool
-
:
setAffinity
(OpenThreads.Affinity affinity)¶ Hint of what affinity to use for any threads associated with the
osg.GraphicsContext
created using theseosg.GraphicsContext.Traits
.Параметры: affinity (OpenThreads.Affinity) –
-
:
getAffinity
()¶ -
Тип результата: OpenThreads.Affinity
-