blob: c078ca5766a35f3f69308d7b3ac6f851a8c73323 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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
|