|  | VTK
    9.0.1
    | 
 
 
 
Go to the documentation of this file.
   22 #ifndef vtkOpenGLShaderCache_h 
   23 #define vtkOpenGLShaderCache_h 
   26 #include "vtkRenderingOpenGL2Module.h"  
   43   virtual vtkShaderProgram* ReadyShaderProgram(
const char* vertexCode, 
const char* fragmentCode,
 
   61   void ReleaseCurrentShader();
 
   66   virtual void ReleaseGraphicsResources(
vtkWindow* win);
 
   84   virtual unsigned int ReplaceShaderValues(
 
   88     const char* vertexCode, 
const char* fragmentCode, 
const char* geometryCode);
 
   89   virtual vtkShaderProgram* GetShaderProgram(std::map<vtkShader::Type, vtkShader*> shaders);
 
  
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on.
vtkShaderProgram * LastShaderBound
abstract base class for most VTK objects
window superclass for vtkRenderWindow
The ShaderProgram uses one or more Shader objects.
void SetElapsedTime(float val)
a simple class to control print indentation
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.