summaryrefslogtreecommitdiffstats
path: root/src/gldisc.h
blob: 21db6b83bebdc8885712f106c1527ad02449c82e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#ifndef GLDISC_H
#define GLDISC_H

#include <cmath>

#include "glbody.h"

class GLDisc : public GLBody
{
public:
    GLDisc(double radius = 1.0, double height = 2.0, int sides = 10);

    virtual void makeSurface(QVector<GLPoint> *pointContainer, QVector<GLshort> *indexContainer);
    virtual bool isHit(QVector3D p1, QVector3D p2);
};

#endif // GLDISC_H