]> git.tdb.fi Git - libs/gl.git/blob - source/vertexbuffer.h
3b1344f9474ef75b7096786f8627e887ef1fd63b
[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 "types.h"
12
13 namespace Msp {
14 namespace GL {
15
16 class VertexBuffer
17 {
18 public:
19         VertexBuffer();
20         void bind() const;
21         void data(sizei, void *);
22         ~VertexBuffer();
23
24         static void unbind() { bound=0; }
25 private:
26         uint id;
27
28         static const VertexBuffer *bound;
29 };
30
31 } // namespace GL
32 } // namespace Msp
33
34 #endif