]> git.tdb.fi Git - libs/gl.git/blob - source/vertexarraybuilder.h
Support multiple sets of texture coordinates in VertexArrays
[libs/gl.git] / source / vertexarraybuilder.h
1 /* $Id$
2
3 This file is part of libmspgl
4 Copyright © 2007-2008, 2010  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 private:
23         VertexArray  &array;
24
25         VertexArrayBuilder(const VertexArrayBuilder &);
26 public:
27         VertexArrayBuilder(VertexArray &);
28         ~VertexArrayBuilder();
29
30 private:
31         virtual void vertex_(float, float, float, float);
32 };
33
34 } // namespace GL
35 } // namespace Msp
36
37 #endif