]> git.tdb.fi Git - libs/gl.git/blob - source/capsule.h
456a78246899dfe47c3c277515992c1816d09a79
[libs/gl.git] / source / capsule.h
1 /* $Id$
2
3 This file is part of libmspgl
4 Copyright © 2011  Mikko Rasa, Mikkosoft Productions
5 Distributed under the LGPL
6 */
7
8 #ifndef MSP_GL_CAPSULE_H_
9 #define MSP_GL_CAPSULE_H_
10
11 #include <msp/gl/geometrybuilder.h>
12
13 namespace Msp {
14 namespace GL {
15
16 class CapsuleBuilder: public GeometryBuilder
17 {
18 private:
19         float radius;
20         float length;
21         unsigned segments;
22         unsigned rings;
23
24 public:
25         CapsuleBuilder(float, float, unsigned = 16, unsigned = 9);
26
27         virtual void build(PrimitiveBuilder &) const;
28 };
29
30 } // namepace GL
31 } // namespace Msp
32
33 #endif