From 0fd8503a952986a2669d929cac2dd1714a24ca2b Mon Sep 17 00:00:00 2001 From: Stefan Suhren Date: Mon, 26 Oct 2015 23:10:59 +0100 Subject: Push and pop the mvp Matrix --- src/glitem.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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, -- cgit v1.2.3-70-g09d2