X-Git-Url: https://git.ucc.asn.au/?p=atyndall%2Fcits2231.git;a=blobdiff_plain;f=scene.c;h=c1e1eb9a8c39a256d8b530cee905d49319472f7b;hp=87e0f00e165f6b9dea949dc2e53431313c8be967;hb=bc1e4447312bdfb7fd6bc13cfbec364b96d5806e;hpb=e8087a7fdcdb4e8bd8304bdba1d311a4f33e8e92 diff --git a/scene.c b/scene.c index 87e0f00..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(); } /** @@ -389,8 +390,9 @@ void display() { SceneObject so = sceneObjs[i]; // Apply rotation vector - /*vector* rv = so.rotation.vect; - glRotatef(so.rotation.parameter, *rv[0], *rv[1], *rv[2]); + vector* rv = so.rotation.vect; + 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; @@ -405,8 +407,8 @@ void display() { glBindTexture(GL_TEXTURE_2D, so.texture); } else { glBindTexture(GL_TEXTURE_2D, 0); - } -*/ + }*/ + // Draw actual object if ( so.mesh > 0 ) { // drawMesh();