diff options
| author | Stefan Suhren <suhren.stefan@fh-swf.de> | 2015-10-26 21:50:32 +0100 |
|---|---|---|
| committer | Stefan Suhren <suhren.stefan@fh-swf.de> | 2015-10-26 21:50:32 +0100 |
| commit | fedc6e9684e017513b52f845f1c9384d738cfe62 (patch) | |
| tree | 83acc60861e49adcf08f1c4372c10a86306bee62 /src/glitem.cpp | |
| parent | 94783d6efa10f84889c02ff31118883903d494a2 (diff) | |
| download | Multimedia-fedc6e9684e017513b52f845f1c9384d738cfe62.tar.gz Multimedia-fedc6e9684e017513b52f845f1c9384d738cfe62.zip | |
Add first version of drawing F with transformations
Diffstat (limited to 'src/glitem.cpp')
| -rw-r--r-- | src/glitem.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/glitem.cpp b/src/glitem.cpp index 47b2acc..47e2c03 100644 --- a/src/glitem.cpp +++ b/src/glitem.cpp @@ -430,6 +430,13 @@ void GLItem::createF(double height) createCube(QVector3D(stdLength, height - 2.0 * stdLength, 0.0),QVector3D(2.0 * stdLength, height - 3.0 * stdLength, stdLength)); } +void GLItem::drawF(double height) +{ + m_renderer->scale(QVector3D(300.0, 300.0, 300.0)); + + createCube(QVector3D(0.0, 0.0, 0.0), QVector3D(1.0, 1.0, 1.0)); +} + void GLItem::createAxis(double length, const QVector3D & origin, const QVector3D & axis, const QVector3D & normal, const QVector3D & texCoord, const GLColorRgba& color) |
