From fedc6e9684e017513b52f845f1c9384d738cfe62 Mon Sep 17 00:00:00 2001 From: Stefan Suhren Date: Mon, 26 Oct 2015 21:50:32 +0100 Subject: Add first version of drawing F with transformations --- src/glitem.cpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/glitem.cpp') 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) -- cgit v1.2.3-70-g09d2