X-Git-Url: https://git.ucc.asn.au/?p=atyndall%2Fcits2231.git;a=blobdiff_plain;f=scene.c;h=b1c4e88a25bb1008eb4b5573851b730f2f53fa23;hp=d794a0f1976ffd061a33b679e98a4053977bf932;hb=978c1b7a8041e274db1840ef60071c622198f356;hpb=4907cd758a8f2d227b76fb82e557487b1197d0be diff --git a/scene.c b/scene.c index d794a0f..b1c4e88 100644 --- a/scene.c +++ b/scene.c @@ -390,16 +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]); + //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]); + glScalef(1, 1, 1); // Apply translation vector - glTranslatef(so.x, so.y, so.z); + //glTranslatef(so.x, so.y, so.z); // Apply texture if ( so.texture > 0 ) {