Section: Visualization Toolkit Rendering Classes
Initialization of shader parameters is delegated to instances of vtkShader (vtkGLSLShader in this case). .SECTION Thanks Shader support in VTK includes key contributions by Gary Templet at Sandia National Labs.
To create an instance of class vtkGLSLShaderProgram, simply invoke its constructor as follows
obj = vtkGLSLShaderProgram
obj
is an instance of the vtkGLSLShaderProgram class.
string = obj.GetClassName ()
int = obj.IsA (string name)
vtkGLSLShaderProgram = obj.NewInstance ()
vtkGLSLShaderProgram = obj.SafeDownCast (vtkObject o)
obj.Render (vtkActor actor, vtkRenderer renderer)
obj.PostRender (vtkActor , vtkRenderer )
- Called to unload the shaders after the actor has been rendered.
obj.ReleaseGraphicsResources (vtkWindow )
- Release any graphics resources that are being consumed by this actor.
The parameter window could be used to determine which graphic
resources to release.
int = obj.GetProgram ()