Go to the documentation of this file.
25 #ifndef vtkOpenGLRenderUtilities_h
26 #define vtkOpenGLRenderUtilities_h
28 #include "vtkRenderingOpenGL2Module.h"
53 float *verts,
float *tcoords,
56 float *verts,
unsigned int numVerts,
57 GLuint *indices,
unsigned int numIndices,
static std::string GetFullScreenQuadGeometryShader()
static std::string GetFullScreenQuadFragmentShaderTemplate()
static bool PrepFullScreenVAO(vtkOpenGLBufferObject *verts, vtkOpenGLVertexArrayObject *vao, vtkShaderProgram *prog)
~vtkOpenGLRenderUtilities() override
static void MarkDebugEvent(const std::string &event)
Pass a debugging mark to the render engine to assist development via tools like apitrace.
abstract base class for most VTK objects
vtkOpenGLRenderUtilities()
static void DrawFullScreenQuad()
OpenGL rendering utility functions.
The ShaderProgram uses one or more Shader objects.
a simple class to control print indentation
static std::string GetFullScreenQuadVertexShader()
Draw a full-screen quad:
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...
static void RenderTriangles(float *verts, unsigned int numVerts, GLuint *indices, unsigned int numIndices, float *tcoords, vtkShaderProgram *program, vtkOpenGLVertexArrayObject *vao)
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
The VertexArrayObject class uses, or emulates, vertex array objects.
static bool PrepFullScreenVAO(vtkOpenGLRenderWindow *renWin, vtkOpenGLVertexArrayObject *vao, vtkShaderProgram *prog)