]> git.tdb.fi Git - libs/gl.git/blob - source/builders/capsule.h
Align staging memory with an alignment suitable for image transfers
[libs/gl.git] / source / builders / capsule.h
1 #ifndef MSP_GL_CAPSULE_H_
2 #define MSP_GL_CAPSULE_H_
3
4 #include "geometrybuilder.h"
5
6 namespace Msp {
7 namespace GL {
8
9 class CapsuleBuilder: public GeometryBuilder
10 {
11 private:
12         float radius;
13         float length;
14         unsigned segments;
15         unsigned rings;
16
17 public:
18         CapsuleBuilder(float, float, unsigned = 16, unsigned = 9);
19
20         using GeometryBuilder::build;
21         virtual void build(PrimitiveBuilder &) const;
22 };
23
24 } // namepace GL
25 } // namespace Msp
26
27 #endif