]> git.tdb.fi Git - libs/gl.git/blobdiff - source/vertexbuffer.h
Inherit Loaders from the ObjectLoader classes
[libs/gl.git] / source / vertexbuffer.h
index 22fcdfb11c4311fadc89b4688abbbb2790537f7b..b0963fb358e70e083d2424868a5306e3eea7b2ad 100644 (file)
@@ -1,24 +1,28 @@
+/* $Id$
+
+This file is part of libmspgl
+Copyright © 2007  Mikko Rasa, Mikkosoft Productions
+Distributed under the LGPL
+*/
+
 #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