+/* $Id$
+
+This file is part of libmspgl
+Copyright © 2007 Mikko Rasa, Mikkosoft Productions
+Distributed under the LGPL
+*/
+
#define GL_GLEXT_PROTOTYPES
#include <GL/gl.h>
//XXX gl.h seems to include glext.h, but can I rely on this?
glDeleteBuffers(1, &id);
}
+void VertexBuffer::unbind()
+{
+ if(bound)
+ {
+ glBindBuffer(GL_ARRAY_BUFFER, 0);
+ bound=0;
+ }
+}
+
const VertexBuffer *VertexBuffer::bound=0;
} // namespace GL