]> git.tdb.fi Git - libs/gl.git/blob - source/box.h
Drop Id tags and copyright notices from files
[libs/gl.git] / source / 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         virtual void build(PrimitiveBuilder &) const;
21 private:
22         void build_face(PrimitiveBuilder &, const Vector3 &, const Vector3 &, const Vector3 &) const;
23 };
24
25 } // namespace GL
26 } // namespace Msp
27
28 #endif