]> git.tdb.fi Git - libs/gl.git/blob - source/vertexarraybuilder.h
0b8eef860c2b36952a2fc73d058e81de19d6701b
[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         std::vector<float> &data;
24
25         VertexArrayBuilder(VertexArray &);
26         ~VertexArrayBuilder();
27
28 private:
29         VertexArray  &array;
30
31         VertexArrayBuilder(const VertexArrayBuilder &);
32         virtual void vertex_(float, float, float, float);
33 };
34
35 } // namespace GL
36 } // namespace Msp
37
38 #endif