25 #ifndef OSD_CPU_GL_VERTEX_BUFFER_H
26 #define OSD_CPU_GL_VERTEX_BUFFER_H
28 #include "../version.h"
30 #include "../osd/opengl.h"
32 namespace OpenSubdiv {
33 namespace OPENSUBDIV_VERSION {
56 void UpdateData(
const float *src,
int startVertex,
int numVertices);
90 using namespace OPENSUBDIV_VERSION;
94 #endif // OSD_CPU_GL_VERTEX_BUFFER_H
void UpdateData(const float *src, int startVertex, int numVertices)
int GetNumElements() const
Returns how many elements defined in this vertex buffer.
bool allocate()
Allocates VBO for this buffer. Returns true if success.
CpuGLVertexBuffer(int numElements, int numVertices)
Constructor.
~CpuGLVertexBuffer()
Destructor.
Concrete vertex buffer class for cpu subvision and OpenGL drawing.
static CpuGLVertexBuffer * Create(int numElements, int numVertices)
Creator. Returns NULL if error.
int GetNumVertices() const
Returns how many vertices allocated in this vertex buffer.