VTK
vtkOpenGLVertexBufferObjectCache.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkOpenGLTexture.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 =========================================================================*/
22 #ifndef vtkOpenGLVertexBufferObjectCache_h
23 #define vtkOpenGLVertexBufferObjectCache_h
24 
25 #include "vtkRenderingOpenGL2Module.h" // For export macro
26 #include "vtkObject.h"
27 #include <map> // for methods
28 
30 class vtkDataArray;
31 class vtkTimeStamp;
32 
33 class VTKRENDERINGOPENGL2_EXPORT vtkOpenGLVertexBufferObjectCache : public vtkObject
34 {
35 public:
38  void PrintSelf(ostream& os, vtkIndent indent) VTK_OVERRIDE;
39 
48  vtkDataArray *array,
49  int destType);
50 
55  void RemoveVBO(vtkOpenGLVertexBufferObject *vbo);
56 
57  typedef std::map<vtkDataArray*, vtkOpenGLVertexBufferObject *> VBOMap;
58 
59 protected:
62 
63  VBOMap MappedVBOs;
64 
65 private:
67  void operator=(const vtkOpenGLVertexBufferObjectCache&) VTK_DELETE_FUNCTION;
68 
69 };
70 
71 #endif
abstract base class for most VTK objects
Definition: vtkObject.h:53
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
record modification and/or execution time
Definition: vtkTimeStamp.h:32
manage vertex buffer objects shared within a context
std::map< vtkDataArray *, vtkOpenGLVertexBufferObject * > VBOMap
a simple class to control print indentation
Definition: vtkIndent.h:33
abstract superclass for arrays of numeric data
Definition: vtkDataArray.h:48
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on...