(no commit message)
authorAsh Tyndall <[email protected]>
Thu, 20 Oct 2011 03:21:27 +0000 (11:21 +0800)
committerAsh Tyndall <[email protected]>
Thu, 20 Oct 2011 03:21:27 +0000 (11:21 +0800)
globals.c
scene.c

index 818fcf2..a95bfbd 100644 (file)
--- a/globals.c
+++ b/globals.c
@@ -56,8 +56,8 @@ GLfloat angle = -150;   /* in degrees */
 GLfloat angle2 = 30;   /* in degrees */
 
 /* Near and far parameters */
-GLfloat near = -10;
-GLfloat far = 10;
+GLfloat near = -20;
+GLfloat far = 20;
 
 /* Zoom factor for mouse movements */
 GLfloat zoomFactor = 1.0;
diff --git a/scene.c b/scene.c
index 2746652..c7cd7a5 100644 (file)
--- a/scene.c
+++ b/scene.c
@@ -188,10 +188,10 @@ void windowReshape(int w, int h) {
   glLoadIdentity();\r
   if (w <= h) \r
     glOrtho(near, far, near*(GLfloat)h/(GLfloat)w,\r
-             far*(GLfloat)h/(GLfloat)w, near, far);\r
+             far*(GLfloat)h/(GLfloat)w, -100, 100);\r
   else\r
     glOrtho(near*(GLfloat)w/(GLfloat)h,\r
-             far*(GLfloat)w/(GLfloat)h, near, far, near, far);\r
+             far*(GLfloat)w/(GLfloat)h, near, far, -100, 100);\r
    glMatrixMode(GL_MODELVIEW); \r
    glLoadIdentity();\r
 }\r

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