(no commit message)
[atyndall/cits2231.git] / helper.c
index 34667ec..ced1889 100644 (file)
--- a/helper.c
+++ b/helper.c
@@ -363,4 +363,24 @@ void updateLights() {
   }
 
   glEnable(GL_LIGHTING);
+}
+
+/**
+ * Sets variables to the state they are in to begin with.
+ */
+void initializeState() {
+  /* Initial light 0 position. */
+  lightObjs[0].position[0] = 4;
+  lightObjs[0].position[1] = 5;
+  lightObjs[0].position[2] = 6;
+  lightObjs[0].position[3] = 0.0;
+
+  /* Initial light 1 position. */
+  lightObjs[1].position[0] = -4;
+  lightObjs[1].position[1] = 5;
+  lightObjs[1].position[2] = -6;
+  lightObjs[1].position[3] = 0.0;
+
+  /* Initial floor texture */
+  currentGroundTexture = 3;
 }
\ No newline at end of file

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