From: Ash Tyndall Date: Thu, 20 Oct 2011 03:30:48 +0000 (+0800) Subject: (no commit message) X-Git-Url: https://git.ucc.asn.au/?a=commitdiff_plain;h=98a2cb8985b63cd318709aecb70fe6a83a97419a;p=atyndall%2Fcits2231.git --- diff --git a/scene.c b/scene.c index 3f6922a..95c19c5 100644 --- a/scene.c +++ b/scene.c @@ -187,10 +187,10 @@ void windowReshape(int w, int h) { glMatrixMode(GL_PROJECTION); glLoadIdentity(); if (w <= h) - glFrustum(near, far, near*(GLfloat)h/(GLfloat)w, + glOrtho(near, far, near*(GLfloat)h/(GLfloat)w, far*(GLfloat)h/(GLfloat)w, -100, 100); else - glFrustum(near*(GLfloat)w/(GLfloat)h, + glOrtho(near*(GLfloat)w/(GLfloat)h, far*(GLfloat)w/(GLfloat)h, near, far, nearClip, farClip); glMatrixMode(GL_MODELVIEW); glLoadIdentity();