X-Git-Url: https://git.ucc.asn.au/?p=atyndall%2Fcits2231.git;a=blobdiff_plain;f=scene.c;h=c1e1eb9a8c39a256d8b530cee905d49319472f7b;hp=386586e549f2e1656f3f6d9a73095ad7a7ec90e5;hb=bc1e4447312bdfb7fd6bc13cfbec364b96d5806e;hpb=d6176afd69975dd4fd1a474db49995b4066a8548 diff --git a/scene.c b/scene.c index 386586e..c1e1eb9 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("%d, %d, %d\n", *rv[0], *rv[1], *rv[2]); + /* glRotatef(so.rotation.parameter, *rv[0], *rv[1], *rv[2]); // Apply scaling vector vector* sv = so.scale; @@ -404,9 +406,8 @@ void display() { getTexture(so.texture); glBindTexture(GL_TEXTURE_2D, so.texture); } else { - getTexture(0); glBindTexture(GL_TEXTURE_2D, 0); - } + }*/ // Draw actual object if ( so.mesh > 0 ) {