27 #ifndef vtkShader2Collection_h
28 #define vtkShader2Collection_h
30 #include "vtkRenderingOpenGLModule.h"
create and manipulate unsorted lists of objects
void AddItem(vtkObject *)
Add an object to the list.
a simple class to control print indentation
abstract base class for most VTK objects
a list of Shader2 objects.
vtkShader2 * GetNextShader(vtkCollectionSimpleIterator &cookie)
Reentrant safe way to get an object in a collection.
void AddCollection(vtkShader2Collection *other)
Add the elements of ‘other’ to the end of ‘this’.
bool HasTessellationControlShaders()
Tells if at least one of the shaders is a tessellation control shader.
bool HasGeometryShaders()
Tells if at least one of the shaders is a geometry shader.
void RemoveCollection(vtkShader2Collection *other)
Remove the elements of ‘other’ from ‘this’.
void ReleaseGraphicsResources()
Release OpenGL resources (shader id of each item).
static vtkShader2Collection * New()
bool HasShadersOfType(int)
vtkMTimeType GetMTime()
Modified GetMTime because the collection time depends on the content of the shaders.
vtkShader2 * GetNextShader()
Get the next shader in the list.
bool HasVertexShaders()
Tells if at least one of the shaders is a vertex shader.
bool HasFragmentShaders()
Tells if at least one of the shaders is a fragment shader.
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
vtkShader2 * GetLastShader()
Get the last shader in the list.
void AddItem(vtkShader2 *shader)
Add a shader to the list.
bool HasTessellationEvaluationShaders()
Tells if at least one of the shaders is a tessellation evaluation shader.
void * vtkCollectionSimpleIterator
vtkTypeUInt64 vtkMTimeType