summaryrefslogtreecommitdiffstats
path: root/src/gldisc.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/gldisc.h')
-rw-r--r--src/gldisc.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/gldisc.h b/src/gldisc.h
new file mode 100644
index 0000000..21db6b8
--- /dev/null
+++ b/src/gldisc.h
@@ -0,0 +1,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