]> git.tdb.fi Git - libs/gl.git/blob - source/meshbuilder.h
6118c6869f4fd0f6dd1d95149088380527007046
[libs/gl.git] / source / meshbuilder.h
1 /* $Id$
2
3 This file is part of libmspgl
4 Copyright © 2008, 2011  Mikko Rasa, Mikkosoft Productions
5 Distributed under the LGPL
6 */
7
8 #ifndef MSP_GL_MESHBUILDER_H_
9 #define MSP_GL_MESHBUILDER_H_
10
11 #include "primitivebuilder.h"
12
13 namespace Msp {
14 namespace GL {
15
16 class Batch;
17 class Mesh;
18
19 class MeshBuilder: public PrimitiveBuilder
20 {
21 private:
22         Mesh  &mesh;
23         Batch *batch;
24
25 public:
26         MeshBuilder(Mesh &);
27         void auto_offset();
28 private:
29         virtual void begin_();
30         virtual void end_();
31         virtual void element_(unsigned);
32 };
33
34 } // namespace GL
35 } // namespace Msp
36
37 #endif