VTK
vtkOpenGLHelper.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4 
5  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
6  All rights reserved.
7  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
8 
9  This software is distributed WITHOUT ANY WARRANTY; without even
10  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
11  PURPOSE. See the above copyright notice for more information.
12 
13 =========================================================================*/
14 
15 #ifndef vtkOpenGLHelper_h
16 #define vtkOpenGLHelper_h
17 
18 #include "vtkRenderingOpenGL2Module.h" // for export macro
19 #include "vtkTimeStamp.h"
20 
24 class vtkShaderProgram;
25 class vtkWindow;
26 
27 // Store the shaders, program, and ibo in a common place
28 // as they are used together frequently. This is just
29 // a convenience class.
31 {
32 public:
37 
39 
41  ~vtkOpenGLHelper();
42  void ReleaseGraphicsResources(vtkWindow *win);
43 };
44 
45 #endif // vtkOpenGLHelper_h
46 
47 // VTK-HeaderTest-Exclude: vtkOpenGLHelper.h
manage Shader Programs within a context
#define VTKRENDERINGOPENGL2_EXPORT
vtkShaderProgram * Program
record modification and/or execution time
Definition: vtkTimeStamp.h:34
vtkOpenGLVertexArrayObject * VAO
window superclass for vtkRenderWindow
Definition: vtkWindow.h:36
vtkTimeStamp AttributeUpdateTime
The VertexArrayObject class uses, or emulates, vertex array objects.
vtkOpenGLIndexBufferObject * IBO
vtkTimeStamp ShaderSourceTime
OpenGL vertex buffer object.
The ShaderProgram uses one or more Shader objects.