]> git.tdb.fi Git - libs/gl.git/blob - source/builders/box.h
Add files which were forgotten earlier
[libs/gl.git] / source / builders / box.h
1 #ifndef MSP_GL_BOX_H_
2 #define MSP_GL_BOX_H_
3
4 #include "geometrybuilder.h"
5 #include "vector.h"
6
7 namespace Msp {
8 namespace GL {
9
10 class BoxBuilder: public GeometryBuilder
11 {
12 private:
13         Vector3 origin;
14         Vector3 span;
15
16 public:
17         BoxBuilder(float, float, float);
18         BoxBuilder(const Vector3 &, const Vector3 &);
19
20         using GeometryBuilder::build;
21         virtual void build(PrimitiveBuilder &) const;
22 private:
23         void build_face(PrimitiveBuilder &, const Vector3 &, const Vector3 &, const Vector3 &) const;
24 };
25
26 } // namespace GL
27 } // namespace Msp
28
29 #endif