21 #ifndef vtkOpenGLShaderCache_h 22 #define vtkOpenGLShaderCache_h 24 #include "vtkRenderingOpenGL2Module.h" 41 const char *vertexCode,
42 const char *fragmentCode,
43 const char *geometryCode);
49 std::map<vtkShader::Type,vtkShader *>
shaders);
57 void ReleaseCurrentShader();
60 virtual void ReleaseGraphicsResources(
vtkWindow *win);
75 virtual unsigned int ReplaceShaderValues(
81 const char *fragmentCode,
82 const char *geometryCode);
84 std::map<vtkShader::Type,vtkShader *>
shaders);
abstract base class for most VTK objects
manage Shader Programs within a context
#define vtkTypeMacro(thisClass, superclass)
virtual void ClearLastShaderBound()
window superclass for vtkRenderWindow
virtual void PrintSelf(ostream &os, vtkIndent indent)
a simple class to control print indentation
#define vtkGetObjectMacro(name, type)
vtkShaderProgram * LastShaderBound
GLsizei const GLchar ** string
The ShaderProgram uses one or more Shader objects.