summaryrefslogtreecommitdiffstats
path: root/src/glitem.cpp
diff options
context:
space:
mode:
authorStefan Suhren <suhren.stefan@fh-swf.de>2015-10-26 23:10:59 +0100
committerStefan Suhren <suhren.stefan@fh-swf.de>2015-10-26 23:10:59 +0100
commit0fd8503a952986a2669d929cac2dd1714a24ca2b (patch)
treeaaf39a56207441de3376b31d823df6af4ee3adea /src/glitem.cpp
parentfedc6e9684e017513b52f845f1c9384d738cfe62 (diff)
downloadMultimedia-0fd8503a952986a2669d929cac2dd1714a24ca2b.tar.gz
Multimedia-0fd8503a952986a2669d929cac2dd1714a24ca2b.zip
Push and pop the mvp Matrix
Diffstat (limited to 'src/glitem.cpp')
-rw-r--r--src/glitem.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/glitem.cpp b/src/glitem.cpp
index 47e2c03..016550b 100644
--- a/src/glitem.cpp
+++ b/src/glitem.cpp
@@ -432,9 +432,13 @@ void GLItem::createF(double height)
void GLItem::drawF(double height)
{
- m_renderer->scale(QVector3D(300.0, 300.0, 300.0));
+ m_renderer->pushMvMatrix();
+
+ m_renderer->scale(QVector3D(10.0, 10.0, 10.0));
createCube(QVector3D(0.0, 0.0, 0.0), QVector3D(1.0, 1.0, 1.0));
+
+ m_renderer->popMvMatrix();
}
void GLItem::createAxis(double length, const QVector3D & origin, const QVector3D & axis,