]> git.tdb.fi Git - libs/gl.git/blob - source/sphere.h
Add geometry builder for sphere
[libs/gl.git] / source / sphere.h
1 #ifndef MSP_GL_SPHERE_H_
2 #define MSP_GL_SPHERE_H_
3
4 #include "geometrybuilder.h"
5
6 namespace Msp {
7 namespace GL {
8
9 class UvSphereBuilder: public GeometryBuilder
10 {
11 private:
12         float radius;
13         unsigned segments;
14         unsigned rings;
15
16 public:
17         UvSphereBuilder(float, unsigned, unsigned = 0);
18
19         using GeometryBuilder::build;
20         virtual void build(PrimitiveBuilder &) const;
21 };
22
23 } // namespace GL
24 } // namespace Msp
25
26 #endif