#include <vtkShaderCodeLibrary.h>
This class provides the hardware shader code.
Definition at line 29 of file vtkShaderCodeLibrary.h.
Public Types | |
typedef vtkObject | Superclass |
Public Member Functions | |
virtual const char * | GetClassName () |
virtual int | IsA (const char *type) |
void | PrintSelf (ostream &os, vtkIndent indent) |
Static Public Member Functions | |
static vtkShaderCodeLibrary * | New () |
static int | IsTypeOf (const char *type) |
static vtkShaderCodeLibrary * | SafeDownCast (vtkObject *o) |
static char * | GetShaderCode (const char *name) |
static const char ** | GetListOfShaderCodeNames () |
static void | RegisterShaderCode (const char *name, const char *code) |
Protected Member Functions | |
vtkShaderCodeLibrary () | |
~vtkShaderCodeLibrary () | |
Friends | |
class | vtkInternalCleanup |
vtkShaderCodeLibrary::vtkShaderCodeLibrary | ( | ) | [protected] |
vtkShaderCodeLibrary::~vtkShaderCodeLibrary | ( | ) | [protected] |
static vtkShaderCodeLibrary* vtkShaderCodeLibrary::New | ( | ) | [static] |
Create an object with Debug turned off, modified time initialized to zero, and reference counting on.
Reimplemented from vtkObject.
virtual const char* vtkShaderCodeLibrary::GetClassName | ( | ) | [virtual] |
Reimplemented from vtkObject.
static int vtkShaderCodeLibrary::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 vtkObject.
virtual int vtkShaderCodeLibrary::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 vtkObject.
static vtkShaderCodeLibrary* vtkShaderCodeLibrary::SafeDownCast | ( | vtkObject * | o | ) | [static] |
Reimplemented from vtkObject.
void vtkShaderCodeLibrary::PrintSelf | ( | ostream & | os, | |
vtkIndent | indent | |||
) | [virtual] |
static char* vtkShaderCodeLibrary::GetShaderCode | ( | const char * | name | ) | [static] |
Obtain the code for the shader with given name. Note that Cg shader names are prefixed with CG and GLSL shader names are prefixed with GLSL. This method allocates memory. It's the responsibility of the caller to free this memory.
static const char** vtkShaderCodeLibrary::GetListOfShaderCodeNames | ( | ) | [static] |
Returns an array of pointers to char strings that are the names of the shader codes provided by the library. The end of the array is marked by a null pointer.
static void vtkShaderCodeLibrary::RegisterShaderCode | ( | const char * | name, | |
const char * | code | |||
) | [static] |
Provides for registering shader code. This overrides the compiled in shader codes.
friend class vtkInternalCleanup [friend] |
Definition at line 68 of file vtkShaderCodeLibrary.h.