]> git.tdb.fi Git - libs/gl.git/blob - source/vertexarraybuilder.h
Add append() method and and operator[] to VertexArray
[libs/gl.git] / source / vertexarraybuilder.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_VERTEXARRAYBUIDER_H_
9 #define MSP_GL_VERTEXARRAYBUIDER_H_
10
11 #include <vector>
12 #include "vertexbuilder.h"
13 #include "vertexformat.h"
14
15 namespace Msp {
16 namespace GL {
17
18 class VertexArray;
19
20 class VertexArrayBuilder: public VertexBuilder
21 {
22 public:
23         VertexArrayBuilder(VertexArray &);
24         ~VertexArrayBuilder();
25
26 private:
27         VertexArray  &array;
28
29         VertexArrayBuilder(const VertexArrayBuilder &);
30         virtual void vertex_(float, float, float, float);
31 };
32
33 } // namespace GL
34 } // namespace Msp
35
36 #endif