osg.Shader¶
- class osg.Shader¶
- Represents
c++ class
- Wraps
osg::Shader
- Bases
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()¶
-
- Тип результата
- :setFileName(std.string filename)¶
-
- Параметры
filename (
std.string
) –
- :getFileName()¶
-
- Тип результата
- :setShaderSource(std.string sourceText)¶
-
- Параметры
sourceText (
std.string
) –
- :getShaderSource()¶
-
- Тип результата
- :setShaderDefinesMode(osg.Shader.ShaderDefinesMode sdm)¶
-
- Параметры
sdm (
osg.Shader.ShaderDefinesMode
) –
- :getShaderDefinesMode()¶
-
- Тип результата
- :loadShaderSourceFromFile(std.string filename)¶
-
- Параметры
filename (
std.string
) –- Тип результата
bool
- :addCodeInjection(double position, std.string code)¶
-
- Параметры
position (
double
) –code (
std.string
) –
- :dirtyShader()¶