From: Ash Tyndall Date: Thu, 20 Oct 2011 03:21:27 +0000 (+0800) Subject: (no commit message) X-Git-Url: https://git.ucc.asn.au/?a=commitdiff_plain;h=f369e5b4fb935813043425ddde66098775615261;p=atyndall%2Fcits2231.git --- diff --git a/globals.c b/globals.c index 818fcf2..a95bfbd 100644 --- 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 --- a/scene.c +++ b/scene.c @@ -188,10 +188,10 @@ void windowReshape(int w, int h) { glLoadIdentity(); if (w <= h) glOrtho(near, far, near*(GLfloat)h/(GLfloat)w, - far*(GLfloat)h/(GLfloat)w, near, far); + far*(GLfloat)h/(GLfloat)w, -100, 100); else glOrtho(near*(GLfloat)w/(GLfloat)h, - far*(GLfloat)w/(GLfloat)h, near, far, near, far); + far*(GLfloat)w/(GLfloat)h, near, far, -100, 100); glMatrixMode(GL_MODELVIEW); glLoadIdentity(); }