osg.Shader¶
-
class
osg.
Shader
¶ Represents: c++ class Wraps: osg::Shader Bases: osg.Object
Constructors:
-
osg.
Shader
()¶
-
osg.
Shader
(osg.Shader.Type type) -
Параметры: type (osg.Shader.Type) –
-
osg.
Shader
(osg.Shader.Type type, std.string source) -
Параметры: - type (osg.Shader.Type) –
- source (std.string) –
Methods:
-
:
setType
(osg.Shader.Type type)¶ -
Параметры: type (osg.Shader.Type) –
-
:
getType
()¶ -
Тип результата: osg.Shader.Type
-
:
setFileName
(std.string filename)¶ -
Параметры: filename (std.string) –
-
:
getFileName
()¶ -
Тип результата: std.string
-
:
setShaderSource
(std.string sourceText)¶ -
Параметры: sourceText (std.string) –
-
:
getShaderSource
()¶ -
Тип результата: std.string
-
:
setShaderDefinesMode
(osg.Shader.ShaderDefinesMode sdm)¶ -
Параметры: sdm (osg.Shader.ShaderDefinesMode) –
-
:
getShaderDefinesMode
()¶ -
Тип результата: osg.Shader.ShaderDefinesMode
-
:
loadShaderSourceFromFile
(std.string filename)¶ -
Параметры: filename (std.string) – Тип результата: bool
-
:
addCodeInjection
(double position, std.string code)¶ -
Параметры: - position (double) –
- code (std.string) –
-
:
dirtyShader
()¶
-