#include <vtkCgShaderProgram.h>
vtkCgShaderProgram allows vtkShaderProperty (later vtkProperty) to treat a vertex/fragment shader pair as a single unit for the purpose of setting their common material library and encapsulating shader operation: shader installation and variable initialization.
Since the interface between Cg shaders is only resolved at runtime (shader runtime that is, after they've been installed on the card), Cg does not have the concept of a shader Program. This class simply delegates shader program functions to its delegate vtkCgShaders.
Definition at line 52 of file vtkCgShaderProgram.h.
Public Types | |
typedef vtkShaderProgram | Superclass |
Public Member Functions | |
virtual const char * | GetClassName () |
virtual int | IsA (const char *type) |
void | PrintSelf (ostream &os, vtkIndent indent) |
virtual void | Render (vtkActor *, vtkRenderer *) |
Static Public Member Functions | |
static int | IsTypeOf (const char *type) |
static vtkCgShaderProgram * | SafeDownCast (vtkObject *o) |
static vtkCgShaderProgram * | New () |
Protected Member Functions | |
vtkCgShaderProgram () | |
~vtkCgShaderProgram () | |
virtual vtkShader * | NewShader () |
vtkCgShaderProgram::vtkCgShaderProgram | ( | ) | [protected] |
vtkCgShaderProgram::~vtkCgShaderProgram | ( | ) | [protected] |
virtual const char* vtkCgShaderProgram::GetClassName | ( | ) | [virtual] |
Reimplemented from vtkShaderProgram.
static int vtkCgShaderProgram::IsTypeOf | ( | const char * | name | ) | [static] |
Return 1 if this class type is the same type of (or a subclass of) the named class. Returns 0 otherwise. This method works in combination with vtkTypeRevisionMacro found in vtkSetGet.h.
Reimplemented from vtkShaderProgram.
virtual int vtkCgShaderProgram::IsA | ( | const char * | name | ) | [virtual] |
Return 1 if this class is the same type of (or a subclass of) the named class. Returns 0 otherwise. This method works in combination with vtkTypeRevisionMacro found in vtkSetGet.h.
Reimplemented from vtkShaderProgram.
static vtkCgShaderProgram* vtkCgShaderProgram::SafeDownCast | ( | vtkObject * | o | ) | [static] |
Reimplemented from vtkShaderProgram.
static vtkCgShaderProgram* vtkCgShaderProgram::New | ( | ) | [static] |
Create an object with Debug turned off, modified time initialized to zero, and reference counting on.
Reimplemented from vtkObject.
void vtkCgShaderProgram::PrintSelf | ( | ostream & | os, | |
vtkIndent | indent | |||
) | [virtual] |
Methods invoked by print to print information about the object including superclasses. Typically not called by the user (use Print() instead) but used in the hierarchical print process to combine the output of several classes.
Reimplemented from vtkShaderProgram.
virtual void vtkCgShaderProgram::Render | ( | vtkActor * | , | |
vtkRenderer * | ||||
) | [virtual] |
Implements vtkShaderProgram.
virtual vtkShader* vtkCgShaderProgram::NewShader | ( | ) | [protected, virtual] |
Creates and returns a new vtkCgShader.
Implements vtkShaderProgram.