1 #ifndef MSP_GL_SPHERE_H_
2 #define MSP_GL_SPHERE_H_
4 #include "geometrybuilder.h"
9 class UvSphereBuilder: public GeometryBuilder
17 UvSphereBuilder(float, unsigned, unsigned = 0);
19 using GeometryBuilder::build;
20 virtual void build(PrimitiveBuilder &) const;
24 class IcoSphereBuilder: public GeometryBuilder
30 static float base_vertices[];
31 static unsigned base_triangles[];
32 static unsigned base_edges[];
33 static unsigned base_tri_edges[];
36 IcoSphereBuilder(float, unsigned);
38 static void initialize_edges();
41 using GeometryBuilder::build;
42 virtual void build(PrimitiveBuilder &) const;
45 unsigned edge_vertex(unsigned, unsigned) const;