Section: Visualization Toolkit Rendering Classes
To create an instance of class vtkColorMaterialHelper, simply invoke its constructor as follows
obj = vtkColorMaterialHelper
obj
is an instance of the vtkColorMaterialHelper class.
string = obj.GetClassName ()
int = obj.IsA (string name)
vtkColorMaterialHelper = obj.NewInstance ()
vtkColorMaterialHelper = obj.SafeDownCast (vtkObject o)
obj.PrepareForRendering ()
- Prepares the shader i.e. reads color material paramters state from OpenGL.
This must be called before the shader is bound.
obj.Render ()
- Uploads any uniforms needed. This must be called only
after the shader has been bound, but before rendering the geometry.