48#ifndef vtkOpenGLVertexBufferObjectGroup_h
49#define vtkOpenGLVertexBufferObjectGroup_h
52#include "vtkRenderingOpenGL2Module.h"
57VTK_ABI_NAMESPACE_BEGIN
165 std::map<std::string, vtkOpenGLVertexBufferObject*>
UsedVBOs;
abstract superclass for arrays of numeric data
a simple class to control print indentation
abstract base class for most VTK objects
The VertexArrayObject class uses, or emulates, vertex array objects.
manage vertex buffer objects shared within a context
manage vertex buffer objects shared within a mapper
std::map< std::string, std::vector< vtkDataArray * > > UsedDataArrays
void AddAllAttributesToVAO(vtkShaderProgram *program, vtkOpenGLVertexArrayObject *vao)
Attach all VBOs to their attributes.
void ClearAllDataArrays()
Clear all the data arrays.
vtkOpenGLVertexBufferObjectGroup()
int GetNumberOfComponents(const char *attribute)
Returns the number of components for this attribute zero if the attribute does not exist.
void CacheDataArray(const char *attribute, vtkDataArray *da, vtkOpenGLVertexBufferObjectCache *cache, int destType)
Set the data array for an attribute in the VBO Group registers the data array until build is called o...
void ReleaseGraphicsResources(vtkWindow *)
Release any graphics resources that are being consumed by this mapper.
void CacheDataArray(const char *attribute, vtkDataArray *da, vtkViewport *vp, int destType)
std::map< std::string, vtkOpenGLVertexBufferObject * > UsedVBOs
void BuildAllVBOs(vtkViewport *)
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
std::map< std::string, std::map< vtkDataArray *, vtkIdType > > UsedDataArrayMaps
std::map< std::string, vtkIdType > UsedDataArraySizes
int GetNumberOfTuples(const char *attribute)
Returns the number of tuples for this attribute zero if the attribute does not exist.
static vtkOpenGLVertexBufferObjectGroup * New()
vtkOpenGLVertexBufferObject * GetVBO(const char *attribute)
Returns the VBO for an attribute, NULL if it is not present.
void AppendDataArray(const char *attribute, vtkDataArray *da, int destType)
Append a data array for an attribute in the VBO Group registers the data array until build is called.
void ClearAllVBOs()
Force all the VBOs to be freed from this group.
vtkMTimeType GetMTime() override
Get the mtime of this groups VBOs.
void BuildAllVBOs(vtkOpenGLVertexBufferObjectCache *)
using the data arrays in this group build all the VBOs, once this has been called the reference to th...
bool ArrayExists(const char *attribute, vtkDataArray *da, vtkIdType &offset, vtkIdType &totalOffset)
Check if the array already exists.
~vtkOpenGLVertexBufferObjectGroup() override
void RemoveAttribute(const char *attribute)
used to remove a no longer needed attribute Calling CacheDataArray with a nullptr attribute will also...
The ShaderProgram uses one or more Shader objects.
abstract specification for Viewports
window superclass for vtkRenderWindow
vtkTypeUInt32 vtkMTimeType