From 3252ebe3045e51d4cf9ee40f24e7204e230492d6 Mon Sep 17 00:00:00 2001 From: Ash Tyndall Date: Fri, 21 Oct 2011 20:36:37 +0800 Subject: [PATCH] --- scene.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/scene.c b/scene.c index d794a0f..d351afa 100644 --- a/scene.c +++ b/scene.c @@ -390,13 +390,13 @@ void display() { SceneObject so = sceneObjs[i]; // Apply rotation vector - GLfloat* rv = &so.rotation.vector; - printf("%f, %f, %f\n", rv[0], rv[1], rv[2]); - glRotatef(so.rotation.amount, rv[0], rv[1], rv[2]); + //GLfloat* rv = &so.rotation.vector; + printf("%f, %f, %f\n", so.rotation.vector[0], so.rotation.vector[1], so.rotation.vector[2]); + glRotatef(so.rotation.amount, so.rotation.vector[0], so.rotation.vector[1], so.rotation.vector[2]); // Apply scaling vector - GLfloat* sv = &so.scale; - glScalef(sv[0], sv[1], sv[2]); + //GLfloat* sv = &so.scale; + glScalef(so.scale[0], so.scale[1], so.scale[2]); // Apply translation vector glTranslatef(so.x, so.y, so.z); -- 2.20.1