]> git.tdb.fi Git - libs/gl.git/blob - source/builders/meshbuilder.h
Check that non-constant data is not accessed from constant expressions
[libs/gl.git] / source / builders / meshbuilder.h
1 #ifndef MSP_GL_MESHBUILDER_H_
2 #define MSP_GL_MESHBUILDER_H_
3
4 #include "primitivebuilder.h"
5
6 namespace Msp {
7 namespace GL {
8
9 class Batch;
10 class Mesh;
11
12 class MeshBuilder: public PrimitiveBuilder
13 {
14 private:
15         Mesh &mesh;
16         Batch *batch;
17
18 public:
19         MeshBuilder(Mesh &);
20         ~MeshBuilder();
21
22         void auto_offset();
23 private:
24         virtual void begin_();
25         virtual void end_();
26         virtual void element_(unsigned);
27 };
28
29 } // namespace GL
30 } // namespace Msp
31
32 #endif