osg.StateSet¶
-
class
osg.
StateSet
¶ Represents: c++ class Wraps: osg::StateSet Bases: osg.Object
Constructors:
-
osg.
StateSet
()¶
Methods:
-
:
setAttribute
(osg.StateAttribute attrib, unsigned value)¶ -
Параметры: - attrib (
osg.StateAttribute
) – - value (
unsigned
) –
- attrib (
-
:
setAttribute
(osg.StateAttribute attrib) -
Параметры: attrib ( osg.StateAttribute
) –
-
:
setAttributeMode
(osg.StateAttribute.Type attribType, unsigned val)¶ -
Параметры: - attribType (
osg.StateAttribute.Type
) – - val (
unsigned
) –
- attribType (
-
:
getAttributeMode
(osg.StateAttribute.Type type)¶ -
Параметры: type ( osg.StateAttribute.Type
) –Тип результата: int
-
:
getAttributeList
()¶
-
:
removeAttribute
(osg.StateAttribute.Type type, unsigned member)¶ -
Параметры: - type (
osg.StateAttribute.Type
) – - member (
unsigned
) –
- type (
-
:
removeAttribute
(osg.StateAttribute attrib) -
Параметры: attrib ( osg.StateAttribute
) –
-
:
getAttribute
(osg.StateAttribute.Type type, unsigned member)¶ -
Параметры: - type (
osg.StateAttribute.Type
) – - member (
unsigned
) –
Тип результата: - type (
-
:
getAttribute
(osg.StateAttribute.Type type) -
Параметры: type ( osg.StateAttribute.Type
) –Тип результата: osg.StateAttribute
-
:
setMode
(osg.StateAttribute.GLMode mode, int val)¶ -
Параметры: - mode (
osg.StateAttribute.GLMode
) – - val (
int
) –
- mode (
-
:
setMode
(GLenum.Value mode, int val) -
Параметры: - mode (
GLenum.Value
) – - val (
int
) –
- mode (
-
:
getModeList
()¶
-
:
getMode
(osg.StateAttribute.GLMode mode)¶ -
Параметры: mode ( osg.StateAttribute.GLMode
) –Тип результата: int
-
:
removeMode
(osg.StateAttribute.GLMode mode)¶ -
Параметры: mode ( osg.StateAttribute.GLMode
) –
-
:
setAttributeAndModes
(osg.StateAttribute attrib)¶ -
Параметры: attrib ( osg.StateAttribute
) –
-
:
setAttributeAndModes
(osg.StateAttribute attrib, int mode) -
Параметры: - attrib (
osg.StateAttribute
) – - mode (
int
) –
- attrib (
-
:
setTextureMode
(unsigned unit, osg.StateAttribute.GLMode mode, int val)¶ -
Параметры: - unit (
unsigned
) – - mode (
osg.StateAttribute.GLMode
) – - val (
int
) –
- unit (
-
:
getTextureMode
(unsigned unit, osg.StateAttribute.GLMode mode)¶ -
Параметры: - unit (
unsigned
) – - mode (
osg.StateAttribute.GLMode
) –
Тип результата: int
- unit (
-
:
getTextureModeList
()¶
-
:
removeTextureMode
(unsigned unit, osg.StateAttribute.GLMode mode)¶ -
Параметры: - unit (
unsigned
) – - mode (
osg.StateAttribute.GLMode
) –
- unit (
-
:
setTextureAttribute
(unsigned unit, osg.StateAttribute attrib, int val)¶ -
Параметры: - unit (
unsigned
) – - attrib (
osg.StateAttribute
) – - val (
int
) –
- unit (
-
:
setTextureAttribute
(unsigned unit, osg.StateAttribute attrib) -
Параметры: - unit (
unsigned
) – - attrib (
osg.StateAttribute
) –
- unit (
-
:
getTextureAttribute
(unsigned unit, osg.StateAttribute.Type type)¶ -
Параметры: - unit (
unsigned
) – - type (
osg.StateAttribute.Type
) –
Тип результата: - unit (
-
:
setTextureAttributeMode
(unsigned unit, osg.StateAttribute.Type attribType, int val)¶ -
Параметры: - unit (
unsigned
) – - attribType (
osg.StateAttribute.Type
) – - val (
int
) –
- unit (
-
:
getTextureAttributeMode
(unsigned unit, osg.StateAttribute.Type type)¶ -
Параметры: - unit (
unsigned
) – - type (
osg.StateAttribute.Type
) –
Тип результата: int
- unit (
-
:
getTextureAttributeList
()¶
-
:
removeTextureAttribute
(unsigned unit, osg.StateAttribute.Type type)¶ -
Параметры: - unit (
unsigned
) – - type (
osg.StateAttribute.Type
) –
- unit (
-
:
setTextureAttributeAndModes
(unsigned unit, osg.StateAttribute attrib, int val)¶ -
Параметры: - unit (
unsigned
) – - attrib (
osg.StateAttribute
) – - val (
int
) –
- unit (
-
:
setTextureAttributeAndModes
(unsigned unit, osg.StateAttribute attrib) -
Параметры: - unit (
unsigned
) – - attrib (
osg.StateAttribute
) –
- unit (
-
:
clear
()¶
-
:
merge
(osg.StateSet rhs)¶ -
Параметры: rhs ( osg.StateSet
) –
-
:
getNumParents
()¶ -
Тип результата: unsigned
-
:
getParent
(unsigned index)¶ -
Параметры: index ( unsigned
) –Тип результата: osg.Object
-
:
setRenderingHint
(unsigned hint)¶ -
Параметры: hint ( unsigned
) –
-
:
getRenderingHint
()¶ -
Тип результата: unsigned
-
:
setRenderBinDetails
(int binNum, std.string binName, osg.StateSet.RenderBinMode mode)¶ -
Параметры: - binNum (
int
) – - binName (
std.string
) – - mode (
osg.StateSet.RenderBinMode
) –
- binNum (
-
:
setRenderBinToInherit
()¶
-
:
useRenderBinDetails
()¶ -
Тип результата: bool
-
:
setRenderBinMode
(osg.StateSet.RenderBinMode mode)¶ -
Параметры: mode ( osg.StateSet.RenderBinMode
) –
-
:
getRenderBinMode
()¶ -
Тип результата: osg.StateSet.RenderBinMode
-
:
setBinNumber
(int num)¶ -
Параметры: num ( int
) –
-
:
getBinNumber
()¶ -
Тип результата: int
-
:
setBinName
(std.string name)¶ -
Параметры: name ( std.string
) –
-
:
getBinName
()¶ -
Тип результата: std.string
-
:
setNestRenderBins
(bool b)¶ -
Параметры: b ( bool
) –
-
:
getNestRenderBins
()¶ -
Тип результата: bool
-
:
addUniform
(osg.Uniform uniform, int mode)¶ -
Параметры: - uniform (
osg.Uniform
) – - mode (
int
) –
- uniform (
-
:
addUniform
(osg.Uniform uniform) -
Параметры: uniform ( osg.Uniform
) –
-
:
setUniformMode
(std.string name, int mode)¶ -
Параметры: - name (
std.string
) – - mode (
int
) –
- name (
-
:
getUniformMode
(std.string name)¶ -
Параметры: name ( std.string
) –Тип результата: int
-
:
removeUniform
(std.string name)¶ -
Параметры: name ( std.string
) –
-
:
removeUniform
(osg.Uniform uniform) -
Параметры: uniform ( osg.Uniform
) –
-
:
getUniform
(std.string name)¶ -
Параметры: name ( std.string
) –Тип результата: osg.Uniform
-
:
getOrCreateUniform
(std.string name, osg.Uniform.Type type, unsigned numElements)¶ -
Параметры: - name (
std.string
) – - type (
osg.Uniform.Type
) – - numElements (
unsigned
) –
Тип результата: - name (
-
:
getOrCreateUniform
(std.string name, osg.Uniform.Type type) -
Параметры: - name (
std.string
) – - type (
osg.Uniform.Type
) –
Тип результата: - name (
-
:
getUniformList
()¶
-
:
setDefine
(std.string defineName, int val)¶ -
Параметры: - defineName (
std.string
) – - val (
int
) –
- defineName (
-
:
setDefine
(std.string defineName, std.string defineValue, int val) -
Параметры: - defineName (
std.string
) – - defineValue (
std.string
) – - val (
int
) –
- defineName (
-
:
removeDefine
(std.string defineName)¶ -
Параметры: defineName ( std.string
) –
-