SoShaderProgramSetGeometryShader Method (Int32, String, SoShaderObjectSourceTypes) |
Convenience method to create a geometry shader with the specified filename and add it at the specified position.
Namespace: OIV.Inventor.NodesAssembly: OIV.Inventor (in OIV.Inventor.dll) Version: 10.12.3.0 (10.12.3.0)
Syntax public virtual SoGeometryShader SetGeometryShader(
int pos,
string filenameOrSource,
SoShaderObjectSourceTypes sourceType
)
Public Overridable Function SetGeometryShader (
pos As Integer,
filenameOrSource As String,
sourceType As SoShaderObjectSourceTypes
) As SoGeometryShader
public:
virtual SoGeometryShader^ SetGeometryShader(
int pos,
String^ filenameOrSource,
SoShaderObjectSourceTypes sourceType
)
abstract SetGeometryShader :
pos : int *
filenameOrSource : string *
sourceType : SoShaderObjectSourceTypes -> SoGeometryShader
override SetGeometryShader :
pos : int *
filenameOrSource : string *
sourceType : SoShaderObjectSourceTypes -> SoGeometryShader
Parameters
- pos
- Type: SystemInt32
- filenameOrSource
- Type: SystemString
- sourceType
- Type: OIV.Inventor.NodesSoShaderObjectSourceTypes
Return Value
Type:
SoGeometryShaderRemarks Return value is the new geometry shader.
See Also