22 #ifndef vtkOpenGLShaderCache_h
23 #define vtkOpenGLShaderCache_h
25 #include "vtkRenderingOpenGL2Module.h"
43 const char *vertexCode,
44 const char *fragmentCode,
45 const char *geometryCode,
52 std::map<vtkShader::Type,vtkShader *> shaders,
64 void ReleaseCurrentShader();
69 virtual void ReleaseGraphicsResources(
vtkWindow *win);
84 virtual unsigned int ReplaceShaderValues(
90 const char *fragmentCode,
91 const char *geometryCode);
93 std::map<vtkShader::Type,vtkShader *> shaders);
abstract base class for most VTK objects
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
manage Shader Programs within a context
virtual void ClearLastShaderBound()
Get/Clear the last Shader bound, called by shaders as they release their graphics resources...
window superclass for vtkRenderWindow
a simple class to control print indentation
vtkShaderProgram * LastShaderBound
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on...
The ShaderProgram uses one or more Shader objects.