]> git.tdb.fi Git - libs/gl.git/blob - source/vertexbuffer.h
Generalize VertexBuffer into Buffer with support for other types as well
[libs/gl.git] / source / vertexbuffer.h
1 /* $Id$
2
3 This file is part of libmspgl
4 Copyright © 2007  Mikko Rasa, Mikkosoft Productions
5 Distributed under the LGPL
6 */
7
8 #ifndef MSP_GL_VERTEXBUFFER_H_
9 #define MSP_GL_VERTEXBUFFER_H_
10
11 #include "buffer.h"
12
13 namespace Msp {
14 namespace GL {
15
16 /**
17 Deprecated.  Equivalent to Buffer of type ARRAY_BUFFER.  Retained for backwards
18 compatibility only.
19 */
20 class VertexBuffer: public Buffer
21 {
22 public:
23         VertexBuffer(): Buffer(ARRAY_BUFFER) { }
24
25         static void unbind() { Buffer::unbind(ARRAY_BUFFER); }
26 };
27
28 } // namespace GL
29 } // namespace Msp
30
31 #endif