diff options
| author | Stefan Suhren <suhren.stefan@fh-swf.de> | 2016-01-11 11:52:53 +0100 |
|---|---|---|
| committer | Stefan Suhren <suhren.stefan@fh-swf.de> | 2016-01-11 11:52:53 +0100 |
| commit | 80b853b74fec090df4c7b5a56f28820ab82e35ca (patch) | |
| tree | 61df0974a49fe2ec6252f3db6b7d52d63cec31de /src/glcube.h | |
| parent | 09bcaa96c9e5d38e3a2b32241fd519fa95fbe0df (diff) | |
| download | Multimedia-80b853b74fec090df4c7b5a56f28820ab82e35ca.tar.gz Multimedia-80b853b74fec090df4c7b5a56f28820ab82e35ca.zip | |
Make cube dimensions changable
Diffstat (limited to 'src/glcube.h')
| -rw-r--r-- | src/glcube.h | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/src/glcube.h b/src/glcube.h index c2b7e14..de399a3 100644 --- a/src/glcube.h +++ b/src/glcube.h @@ -6,11 +6,16 @@ class GLCube : public GLBody { public: - GLCube(float m_width = 1.0, const GLColorRgba & m_color = GLColorRgba::clBlue, const QString m_textureFile = ""); + GLCube(QVector3D lbb = QVector3D(0.0, 0.0, 0.0), QVector3D rtf = QVector3D(1.0, + 1.0, 1.0), const GLColorRgba & m_color = GLColorRgba::clBlue, + const QString m_textureFile = ""); - // GLBody interface -public: - virtual void makeSurface(QVector<GLPoint> *pointContainer, QVector<GLshort> *indexContainer); + virtual void makeSurface(QVector<GLPoint> *pointContainer, + QVector<GLshort> *indexContainer); + +private: + QVector3D m_lbb; + QVector3D m_rtf; }; #endif // GLCUBE_H |
