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 =========================================================================*/
27 #ifndef vtkOpenGLVertexBufferObjectCache_h
28 #define vtkOpenGLVertexBufferObjectCache_h
29 
30 #include "vtkRenderingOpenGL2Module.h" // For export macro
31 #include "vtkObject.h"
32 #include <map> // for methods
33 
35 class vtkDataArray;
36 class vtkTimeStamp;
37 
38 class VTKRENDERINGOPENGL2_EXPORT vtkOpenGLVertexBufferObjectCache : public vtkObject
39 {
40 public:
43  void PrintSelf(ostream& os, vtkIndent indent) override;
44 
53  vtkDataArray *array,
54  int destType);
55 
60  void RemoveVBO(vtkOpenGLVertexBufferObject *vbo);
61 
62  typedef std::map<vtkDataArray*, vtkOpenGLVertexBufferObject *> VBOMap;
63 
64 protected:
67 
68  VBOMap MappedVBOs;
69 
70 private:
72  void operator=(const vtkOpenGLVertexBufferObjectCache&) = delete;
73 
74 };
75 
76 #endif
abstract base class for most VTK objects
Definition: vtkObject.h:59
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:35
manage vertex buffer objects shared within a context
std::map< vtkDataArray *, vtkOpenGLVertexBufferObject * > VBOMap
a simple class to control print indentation
Definition: vtkIndent.h:39
abstract superclass for arrays of numeric data
Definition: vtkDataArray.h:54
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on...