VTK  9.1.0
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 "vtkObject.h"
31#include "vtkRenderingOpenGL2Module.h" // For export macro
32#include <map> // for methods
33
35class vtkDataArray;
36class vtkTimeStamp;
37
38class VTKRENDERINGOPENGL2_EXPORT vtkOpenGLVertexBufferObjectCache : public vtkObject
39{
40public:
43 void PrintSelf(ostream& os, vtkIndent indent) override;
44
53
59
60 typedef std::map<vtkDataArray*, vtkOpenGLVertexBufferObject*> VBOMap;
61
62protected:
65
67
68private:
70 void operator=(const vtkOpenGLVertexBufferObjectCache&) = delete;
71};
72
73#endif
abstract superclass for arrays of numeric data
Definition: vtkDataArray.h:159
a simple class to control print indentation
Definition: vtkIndent.h:113
abstract base class for most VTK objects
Definition: vtkObject.h:73
manage vertex buffer objects shared within a context
static vtkOpenGLVertexBufferObjectCache * New()
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
void RemoveVBO(vtkOpenGLVertexBufferObject *vbo)
Removes all references to a given vertex buffer object.
vtkOpenGLVertexBufferObject * GetVBO(vtkDataArray *array, int destType)
Returns the vertex buffer object which holds the data array's data.
std::map< vtkDataArray *, vtkOpenGLVertexBufferObject * > VBOMap
record modification and/or execution time
Definition: vtkTimeStamp.h:52