summaryrefslogtreecommitdiffstats
path: root/src/glcone.h
diff options
context:
space:
mode:
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