(no commit message)
[atyndall/cits2231.git] / scene.c
diff --git a/scene.c b/scene.c
index d37b0f0..de9a52e 100644 (file)
--- a/scene.c
+++ b/scene.c
@@ -484,8 +484,8 @@ void makeMenu() {
  * @param h New height\r
  */\r
 void windowReshape(int w, int h) {\r
-  GLdouble near = -100.0;\r
-  GLdouble far = 100.0;\r
+  GLdouble near = -10.0;\r
+  GLdouble far = 10.0;\r
 \r
   glViewport(0, 0, (GLsizei) w, (GLsizei) h);\r
   glMatrixMode(GL_PROJECTION);\r
@@ -594,7 +594,7 @@ void drawSquare(int recurseLevel, float x1, float y1, float x2, float y2) {
  */\r
 void drawFloor() {\r
  \r
-drawSquare(0, -1000.0, -1000.0, 1000.0, 1000.0);\r
+drawSquare(0, -100.0, -100.0, 100.0, 100.0);\r
 \r
   /*if (useTexture) {\r
     glDisable(GL_TEXTURE_2D);\r
@@ -650,7 +650,7 @@ void display() {
 \r
       /* Draw a yellow ball at the light source. */\r
       glTranslatef(lightPosition[0], lightPosition[1], lightPosition[2]);\r
-      glutSolidSphere(1.0, 5, 5);\r
+      glutSolidSphere(1.0, 50, 50);\r
 \r
       glEnable(GL_LIGHTING);\r
     glPopMatrix();\r
@@ -715,7 +715,7 @@ int main(int argc, char **argv) {
   glClearDepth(1.0f); // Depth Buffer Setup\r
   glEnable(GL_DEPTH_TEST); // Enables Depth Testing\r
   glDepthFunc(GL_LEQUAL);  // the type\r
-  glEnable(GL_CULL_FACE);\r
+  //glEnable(GL_CULL_FACE);\r
   glEnable(GL_TEXTURE_2D);\r
   glLineWidth(1.0);\r
 \r

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