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

index cc0f908..b441f8c 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 - calculates scene size */
 GLfloat angle2 = 30;   /* in degrees */
 
 /* Near and far parameters - calculates scene size */
-GLfloat near = -10;
-GLfloat far = 10;
+GLfloat near = -15;
+GLfloat far = 15;
 
 /* Near and far clipping planes - calculates clipping planes */
 GLfloat nearClip = -200;
 
 /* Near and far clipping planes - calculates clipping planes */
 GLfloat nearClip = -200;
diff --git a/scene.c b/scene.c
index dde2125..95c19c5 100644 (file)
--- a/scene.c
+++ b/scene.c
@@ -191,7 +191,7 @@ void windowReshape(int w, int h) {
              far*(GLfloat)h/(GLfloat)w, -100, 100);\r
   else\r
     glOrtho(near*(GLfloat)w/(GLfloat)h,\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, -100, 100);\r
+             far*(GLfloat)w/(GLfloat)h, near, far, nearClip, farClip);\r
    glMatrixMode(GL_MODELVIEW); \r
    glLoadIdentity();\r
 }\r
    glMatrixMode(GL_MODELVIEW); \r
    glLoadIdentity();\r
 }\r

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