]> git.tdb.fi Git - libs/gl.git/blob - source/cylinder.h
c671bfee14e1a4e87220f6cf52749b900d4b4e60
[libs/gl.git] / source / cylinder.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 CYLINDER_H_
9 #define CYLINDER_H_
10
11 #include "geometrybuilder.h"
12
13 namespace Msp {
14 namespace GL {
15
16 class CylinderBuilder: public GeometryBuilder
17 {
18 private:
19         float radius;
20         float length;
21         unsigned segments;
22
23 public:
24         CylinderBuilder(float, float, unsigned = 16);
25
26         virtual void build(PrimitiveBuilder &) const;
27 };
28
29 } // namespace GL
30 } // namespace Msp
31
32 #endif