]> git.tdb.fi Git - libs/gl.git/blobdiff - source/builders/cylinder.h
Rearrange soucre files into subdirectories
[libs/gl.git] / source / builders / cylinder.h
diff --git a/source/builders/cylinder.h b/source/builders/cylinder.h
new file mode 100644 (file)
index 0000000..dee4c4f
--- /dev/null
@@ -0,0 +1,26 @@
+#ifndef MSP_GL_CYLINDER_H_
+#define MSP_GL_CYLINDER_H_
+
+#include "geometrybuilder.h"
+
+namespace Msp {
+namespace GL {
+
+class CylinderBuilder: public GeometryBuilder
+{
+private:
+       float radius;
+       float length;
+       unsigned segments;
+
+public:
+       CylinderBuilder(float, float, unsigned = 16);
+
+       using GeometryBuilder::build;
+       virtual void build(PrimitiveBuilder &) const;
+};
+
+} // namespace GL
+} // namespace Msp
+
+#endif