Open CASCADE Technology  7.1.0.beta
Data Structures

OpenGl_VertexBufferEditor.hxx File Reference

#include <OpenGl_VertexBuffer.hxx>
#include <OpenGl_Context.hxx>
#include <NCollection_Array1.hxx>

Data Structures

class  OpenGl_VertexBufferEditor< theVec_t >
 Auxiliary class to iteratively modify data of existing VBO. It provides iteration interface with delayed CPU->GPU memory transfer to avoid slow per-element data transfer. User should explicitly call Flush() method to ensure that all data is transferred to VBO. Temporary buffer on CPU side can be initialized with lesser capacity than VBO to allow re-usage of shared buffer with fixed size between VBOs. More...