X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;ds=sidebyside;f=scene.c;h=b4b61c5473ebb35a6da5129bdae56e5d9178a3a4;hb=9df9f47276976d5030519601404f5681e15ebce9;hp=d351afaf6e46642280b1830f3b0e92eee9e3b025;hpb=3252ebe3045e51d4cf9ee40f24e7204e230492d6;p=atyndall%2Fcits2231.git diff --git a/scene.c b/scene.c index d351afa..b4b61c5 100644 --- a/scene.c +++ b/scene.c @@ -390,13 +390,12 @@ void display() { SceneObject so = sceneObjs[i]; // Apply rotation vector - //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]); + GLfloat* rv = so.rotation.vector; + glRotatef(so.rotation.amount, rv[0], rv[1], rv[2]); // Apply scaling vector - //GLfloat* sv = &so.scale; - glScalef(so.scale[0], so.scale[1], so.scale[2]); + GLfloat* sv = so.scale; + glScalef(sv[0], sv[1], sv[2]); // Apply translation vector glTranslatef(so.x, so.y, so.z);