VTK
vtkOpenGLRenderUtilities.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkOpenGLRenderUtilities.h
5 
6  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7  All rights reserved.
8  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9 
10  This software is distributed WITHOUT ANY WARRANTY; without even
11  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12  PURPOSE. See the above copyright notice for more information.
13 
14 =========================================================================*/
21 #ifndef vtkOpenGLRenderUtilities_h
22 #define vtkOpenGLRenderUtilities_h
23 
24 #include "vtkRenderingOpenGL2Module.h" // For export macro
25 #include "vtkObject.h"
26 
27 #include "vtk_glew.h" // Needed for GLuint.
28 
30 class vtkShaderProgram;
31 
32 class VTKRENDERINGOPENGL2_EXPORT vtkOpenGLRenderUtilities : public vtkObject
33 {
34 public:
36  void PrintSelf(ostream& os, vtkIndent indent);
37 
39 
42  static void RenderQuad(
43  float *verts, float *tcoords,
45  static void RenderTriangles(
46  float *verts, unsigned int numVerts,
47  GLuint *indices, unsigned int numIndices,
48  float *tcoords,
51 
52 protected:
55 
56 private:
57  vtkOpenGLRenderUtilities(const vtkOpenGLRenderUtilities&); // Not implemented.
58  void operator=(const vtkOpenGLRenderUtilities&); // Not implemented.
59 };
60 
61 #endif
abstract base class for most VTK objects
Definition: vtkObject.h:61
OpenGL rendering utility functions.
virtual void PrintSelf(ostream &os, vtkIndent indent)
a simple class to control print indentation
Definition: vtkIndent.h:38
The VertexArrayObject class uses, or emulates, vertex array objects.
The ShaderProgram uses one or more Shader objects.