X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=scene.c;h=77d2c108dc75dbdf1e1e7ea3ea58fcb96ef2f087;hb=47f587200c6be35f945d40d837a50d3c415c8588;hp=b1c4e88a25bb1008eb4b5573851b730f2f53fa23;hpb=978c1b7a8041e274db1840ef60071c622198f356;p=atyndall%2Fcits2231.git diff --git a/scene.c b/scene.c index b1c4e88..77d2c10 100644 --- a/scene.c +++ b/scene.c @@ -390,13 +390,13 @@ void display() { SceneObject so = sceneObjs[i]; // Apply rotation vector - //glRotatef(so.rotation.amount, 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 - glScalef(1, 1, 1); + glScalef(so.scale[0], so.scale[1], so.scale[2]); // Apply translation vector - //glTranslatef(so.x, so.y, so.z); + glTranslatef(so.x, so.y, so.z); // Apply texture if ( so.texture > 0 ) {