22 #ifndef vtkOpenGLRenderUtilities_h
23 #define vtkOpenGLRenderUtilities_h
25 #include "vtkRenderingOpenGL2Module.h"
49 float *verts,
float *tcoords,
52 float *verts,
unsigned int numVerts,
53 GLuint *indices,
unsigned int numIndices,
a simple class to control print indentation
abstract base class for most VTK objects
OpenGL rendering utility functions.
static std::string GetFullScreenQuadVertexShader()
Draw a full-screen quad:
vtkOpenGLRenderUtilities()
static std::string GetFullScreenQuadFragmentShaderTemplate()
static std::string GetFullScreenQuadGeometryShader()
static void RenderTriangles(float *verts, unsigned int numVerts, GLuint *indices, unsigned int numIndices, float *tcoords, vtkShaderProgram *program, vtkOpenGLVertexArrayObject *vao)
static void RenderQuad(float *verts, float *tcoords, vtkShaderProgram *program, vtkOpenGLVertexArrayObject *vao)
Helper function that draws a quad on the screen at the specified vertex coordinates and if tcoords ar...
~vtkOpenGLRenderUtilities()
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
static bool PrepFullScreenVAO(vtkOpenGLBufferObject *verts, vtkOpenGLVertexArrayObject *vao, vtkShaderProgram *prog)
static void DrawFullScreenQuad()
The VertexArrayObject class uses, or emulates, vertex array objects.
The ShaderProgram uses one or more Shader objects.