X-Git-Url: https://git.ucc.asn.au/?p=atyndall%2Fcits2231.git;a=blobdiff_plain;f=scene.c;h=95c19c5a4775e45f407d11b3a13a4dd8ab1cc485;hp=3f6922a72f3af23c00d74038fb22f8e00a3d2320;hb=98a2cb8985b63cd318709aecb70fe6a83a97419a;hpb=d99aa9a1345c297f95c1640e80d5b7529aae6923 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();