VTK
9.4.20250129
|
Internal buffer object builder that maintains a cache of VBO groups. More...
#include <vtkOpenGLContextDeviceBufferObjectBuilder.h>
Public Member Functions | |
void | BuildVBO (vtkOpenGLHelper *cbo, vtkDataArray *positions, vtkUnsignedCharArray *colors, vtkFloatArray *tcoords, std::uintptr_t cacheIdentifier, vtkRenderWindow *renderWindow) |
Build vertex buffer objects for these data arrays and add vertex attribute specifications to the vertex array object. | |
void | Erase (std::uintptr_t cacheIdentifier, vtkRenderWindow *renderWindow) |
Erase cache entry for given identifier. | |
Internal buffer object builder that maintains a cache of VBO groups.
Definition at line 26 of file vtkOpenGLContextDeviceBufferObjectBuilder.h.
void vtkOpenGLContextDeviceBufferObjectBuilder::BuildVBO | ( | vtkOpenGLHelper * | cbo, |
vtkDataArray * | positions, | ||
vtkUnsignedCharArray * | colors, | ||
vtkFloatArray * | tcoords, | ||
std::uintptr_t | cacheIdentifier, | ||
vtkRenderWindow * | renderWindow | ||
) |
Build vertex buffer objects for these data arrays and add vertex attribute specifications to the vertex array object.
Existing VBOs may be reused when a VBOGroup already exists for the cacheIdentifier
and the data arrays have not been modified since last upload.
void vtkOpenGLContextDeviceBufferObjectBuilder::Erase | ( | std::uintptr_t | cacheIdentifier, |
vtkRenderWindow * | renderWindow | ||
) |
Erase cache entry for given identifier.