25 #ifndef OSD_GL_VERTEX_BUFFER_H
26 #define OSD_GL_VERTEX_BUFFER_H
28 #include "../version.h"
30 #include "../osd/opengl.h"
32 namespace OpenSubdiv {
33 namespace OPENSUBDIV_VERSION {
54 void UpdateData(
const float *src,
int startVertex,
int numVertices);
82 using namespace OPENSUBDIV_VERSION;
86 #endif // OSD_GL_VERTEX_BUFFER_H
GLVertexBuffer(int numElements, int numVertices)
Constructor.
GLuint BindVBO()
Returns the GL buffer object.
~GLVertexBuffer()
Destructor.
int GetNumElements() const
Returns how many elements defined in this vertex buffer.
Concrete vertex buffer class for GLSL subvision and OpenGL drawing.
static GLVertexBuffer * Create(int numElements, int numVertices)
Creator. Returns NULL if error.
int GetNumVertices() const
Returns how many vertices allocated in this vertex buffer.
void UpdateData(const float *src, int startVertex, int numVertices)