X-Git-Url: https://git.ucc.asn.au/?p=atyndall%2Fcits2231.git;a=blobdiff_plain;f=scene.c;h=902e5991e7f50edacfa75e121c77e911c3fd9083;hp=1d9868cb934fe84ef090f4618ff0ebb4f5f8726b;hb=09c3124c81ac8607bcb0cdc8dcce79f08f8a1736;hpb=f2df66fb3d50af50622b35e5fa51c904b5a32a3f diff --git a/scene.c b/scene.c index 1d9868c..902e599 100644 --- a/scene.c +++ b/scene.c @@ -112,6 +112,7 @@ void processLightEvents(int id) { void processObjectEvents(int id) { // **NOTE: For the testing phase, only have the teapot addSceneObject(id); + glutPostRedisplay(); } /** @@ -390,7 +391,8 @@ void display() { // Apply rotation vector vector* rv = so.rotation.vect; - glRotatef(so.rotation.parameter, *rv[0], *rv[1], *rv[2]); + printf("%f, %f, %f\n", *rv[0], *rv[1], *rv[2]); + /* glRotatef(so.rotation.parameter, *rv[0], *rv[1], *rv[2]); // Apply scaling vector vector* sv = so.scale; @@ -405,7 +407,7 @@ void display() { glBindTexture(GL_TEXTURE_2D, so.texture); } else { glBindTexture(GL_TEXTURE_2D, 0); - } + }*/ // Draw actual object if ( so.mesh > 0 ) {