From e8df759ad34ed3ea6a678be6e1e419fbc70a075c Mon Sep 17 00:00:00 2001 From: Stefan Suhren Date: Tue, 12 Jan 2016 10:58:42 +0100 Subject: Add a cone shape --- src/glcone.h | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 src/glcone.h (limited to 'src/glcone.h') 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 *pointContainer, QVector *indexContainer); + virtual void draw(GLESRenderer *renderer); + +protected: + double m_upperCircleRadius; +}; + +#endif // GLCONE_H -- cgit v1.2.3-70-g09d2