(no commit message)
[atyndall/cits2231.git] / scene.c
diff --git a/scene.c b/scene.c
index 87e0f00..902e599 100644 (file)
--- a/scene.c
+++ b/scene.c
@@ -112,6 +112,7 @@ void processLightEvents(int id) {
 void processObjectEvents(int id) {\r
   // **NOTE: For the testing phase, only have the teapot\r
   addSceneObject(id);\r
+  glutPostRedisplay();\r
 }\r
 \r
 /**\r
@@ -389,8 +390,9 @@ void display() {
         SceneObject so = sceneObjs[i];\r
 \r
         // Apply rotation vector\r
-        /*vector* rv = so.rotation.vect;\r
-        glRotatef(so.rotation.parameter, *rv[0], *rv[1], *rv[2]);\r
+        vector* rv = so.rotation.vect;\r
+        printf("%f, %f, %f\n", *rv[0], *rv[1], *rv[2]);\r
+       /* glRotatef(so.rotation.parameter, *rv[0], *rv[1], *rv[2]);\r
 \r
         // Apply scaling vector\r
         vector* sv = so.scale;\r
@@ -405,8 +407,8 @@ void display() {
           glBindTexture(GL_TEXTURE_2D, so.texture);\r
         } else {\r
           glBindTexture(GL_TEXTURE_2D, 0);\r
-        }\r
-*/\r
+        }*/\r
+\r
         // Draw actual object\r
         if ( so.mesh > 0 ) {\r
           // drawMesh();\r

UCC git Repository :: git.ucc.asn.au