VTK  9.3.20240426
Public Member Functions | List of all members
vtkOpenGLContextDeviceBufferObjectBuilder Class Reference

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.
 

Detailed Description

Internal buffer object builder that maintains a cache of VBO groups.

Definition at line 26 of file vtkOpenGLContextDeviceBufferObjectBuilder.h.

Member Function Documentation

◆ BuildVBO()

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.

◆ Erase()

void vtkOpenGLContextDeviceBufferObjectBuilder::Erase ( std::uintptr_t  cacheIdentifier,
vtkRenderWindow renderWindow 
)

Erase cache entry for given identifier.


The documentation for this class was generated from the following file: