#ifndef MSP_GL_VERTEXBUFFER_H_
#define MSP_GL_VERTEXBUFFER_H_
-#include "types.h"
+#include "buffer.h"
namespace Msp {
namespace GL {
-class VertexBuffer
+/**
+Deprecated. Equivalent to Buffer of type ARRAY_BUFFER. Retained for backwards
+compatibility only.
+*/
+class VertexBuffer: public Buffer
{
public:
- VertexBuffer();
- void bind() const;
- void data(sizei, void *);
- ~VertexBuffer();
-
- static void unbind() { bound=0; }
-private:
- uint id;
+ VertexBuffer(): Buffer(ARRAY_BUFFER) { }
- static const VertexBuffer *bound;
+ static void unbind() { Buffer::unbind(ARRAY_BUFFER); }
};
} // namespace GL