summaryrefslogtreecommitdiffstats
path: root/src/glcube.h
diff options
context:
space:
mode:
authorStefan Suhren <suhren.stefan@fh-swf.de>2015-11-03 11:15:22 +0100
committerStefan Suhren <suhren.stefan@fh-swf.de>2015-11-03 11:15:22 +0100
commit4877fdb850bdc939e8d2a3efe9ccd6a383052fb3 (patch)
tree16768c6542d9de93105e8ed323189ad8efe0b59f /src/glcube.h
parent4c1c738f6dc00746bf14bec50b5dfc5b69772977 (diff)
downloadMultimedia-4877fdb850bdc939e8d2a3efe9ccd6a383052fb3.tar.gz
Multimedia-4877fdb850bdc939e8d2a3efe9ccd6a383052fb3.zip
Add GLCube
Diffstat (limited to 'src/glcube.h')
-rw-r--r--src/glcube.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/glcube.h b/src/glcube.h
new file mode 100644
index 0000000..c2b7e14
--- /dev/null
+++ b/src/glcube.h
@@ -0,0 +1,16 @@
+#ifndef GLCUBE_H
+#define GLCUBE_H
+
+#include "glbody.h"
+
+class GLCube : public GLBody
+{
+public:
+ GLCube(float m_width = 1.0, const GLColorRgba & m_color = GLColorRgba::clBlue, const QString m_textureFile = "");
+
+ // GLBody interface
+public:
+ virtual void makeSurface(QVector<GLPoint> *pointContainer, QVector<GLshort> *indexContainer);
+};
+
+#endif // GLCUBE_H