summaryrefslogtreecommitdiffstats
path: root/src/glcone.h
diff options
context:
space:
mode:
authorStefan Suhren <suhren.stefan@fh-swf.de>2016-01-12 10:58:42 +0100
committerStefan Suhren <suhren.stefan@fh-swf.de>2016-01-12 10:58:42 +0100
commite8df759ad34ed3ea6a678be6e1e419fbc70a075c (patch)
tree2f0812a88b6db20a601360de62fbaf86b84c78e9 /src/glcone.h
parent3c65cf89b31e4d75a4c19573facd65d620b0c191 (diff)
downloadMultimedia-e8df759ad34ed3ea6a678be6e1e419fbc70a075c.tar.gz
Multimedia-e8df759ad34ed3ea6a678be6e1e419fbc70a075c.zip
Add a cone shape
Diffstat (limited to 'src/glcone.h')
-rw-r--r--src/glcone.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/glcone.h b/src/glcone.h
new file mode 100644
index 0000000..c078ca5
--- /dev/null
+++ b/src/glcone.h
@@ -0,0 +1,18 @@
+#ifndef GLCONE_H
+#define GLCONE_H
+
+#include "gldisc.h"
+
+class GLCone : public GLDisc
+{
+public:
+ GLCone(QVector3D lowerMiddlePoint = QVector3D(0.0, 0.0, 0.0), double lowerRadius = 1.0, double upperRadius = 0.5, double height = 2.0, int sides = 10, GLColorRgba color = GLColorRgba::clBlue, QString textureFile = "");
+
+ virtual void makeSurface(QVector<GLPoint> *pointContainer, QVector<GLshort> *indexContainer);
+ virtual void draw(GLESRenderer *renderer);
+
+protected:
+ double m_upperCircleRadius;
+};
+
+#endif // GLCONE_H