]> git.tdb.fi Git - libs/gl.git/blob - source/box.h
Pull in sized depth component formats from ARB_depth_texture
[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         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