blob: 9aae0322fe1fbfbfa5e812963de06cb59440e733 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
#ifndef GLSPHERE_H
#define GLSPHERE_H
#include <cmath>
#include "glbody.h"
class GLSphere : public GLBody
{
public:
GLSphere(double radius = 1.0, int stacks = 10, int slices = 10);
virtual void makeSurface(QVector<GLPoint> *pointContainer,
QVector<GLshort> *indexContainer);
private:
/**
* @brief calculatePoint
* @param zRotation
* @param yRotation
* @return
*/
QVector3D calculatePoint(double sliceRotation, double stackRotation);
int m_stacks;
int m_slices;
};
#endif // GLSPHERE_H
|