25 #ifndef OSD_CPU_VERTEX_BUFFER_H
26 #define OSD_CPU_VERTEX_BUFFER_H
28 #include "../version.h"
30 namespace OpenSubdiv {
31 namespace OPENSUBDIV_VERSION {
50 void UpdateData(
const float *src,
int startVertex,
int numVertices);
75 using namespace OPENSUBDIV_VERSION;
79 #endif // OSD_CPU_VERTEX_BUFFER_H
int GetNumElements() const
Returns how many elements defined in this vertex buffer.
void UpdateData(const float *src, int startVertex, int numVertices)
static CpuVertexBuffer * Create(int numElements, int numVertices)
Creator. Returns NULL if error.
~CpuVertexBuffer()
Destructor.
CpuVertexBuffer(int numElements, int numVertices)
Constructor.
float * BindCpuBuffer()
Returns the address of CPU buffer.
Concrete vertex buffer class for cpu subvision.
int GetNumVertices() const
Returns how many vertices allocated in this vertex buffer.