25 #ifndef OPENSUBDIV3_OSD_CPU_VERTEX_BUFFER_H 
   26 #define OPENSUBDIV3_OSD_CPU_VERTEX_BUFFER_H 
   28 #include "../version.h" 
   32 namespace OpenSubdiv {
 
   33 namespace OPENSUBDIV_VERSION {
 
   46                                     void *deviceContext = NULL);
 
   53     void UpdateData(
const float *src, 
int startVertex, 
int numVertices,
 
   54                     void *deviceContext = NULL);
 
   79 using namespace OPENSUBDIV_VERSION;
 
   83 #endif  // OPENSUBDIV3_OSD_CPU_VERTEX_BUFFER_H 
static CpuVertexBuffer * Create(int numElements, int numVertices, void *deviceContext=NULL)
Creator. Returns NULL if error. 
int GetNumElements() const 
Returns how many elements defined in this vertex buffer. 
~CpuVertexBuffer()
Destructor. 
float * BindCpuBuffer()
Returns the address of CPU buffer. 
CpuVertexBuffer(int numElements, int numVertices)
Constructor. 
void UpdateData(const float *src, int startVertex, int numVertices, void *deviceContext=NULL)
Concrete vertex buffer class for CPU subdivision. 
int GetNumVertices() const 
Returns how many vertices allocated in this vertex buffer.