X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=scene.c;h=a1e7ba9fa17605d861b787a5cdcb8e36e2019014;hb=0676a848fc84882bc26c31734c332969da897b8a;hp=38a9eccda6150877c1cdaa5d296f632f3c2918dd;hpb=2ea091e608bd5ab0538959c92f2f0c1d83ac61ad;p=atyndall%2Fcits2231.git diff --git a/scene.c b/scene.c index 38a9ecc..a1e7ba9 100644 --- a/scene.c +++ b/scene.c @@ -464,20 +464,11 @@ void makeMenu() { * @param height New height */ void windowReshape(int width, int height) { - glViewport(0, 0, (GLsizei)width, (GLsizei)height); + glViewport(0, 0, (GLsizei)width, (GLsizei)height); glMatrixMode(GL_PROJECTION); - glLoadIdentity(); - + glLoadIdentity(); gluPerspective(60, (GLfloat)width / (GLfloat)height, 0.1, 1000.0); - - /*glViewport(0, 0, w, h); - glMatrixMode(GL_PROJECTION); /* switch matrix mode - glLoadIdentity(); - if (w <= h) - gluOrtho2D(-2.0, 2.0, -2.0 * (GLfloat) h / (GLfloat) w, 2.0 * (GLfloat) h / (GLfloat) w); - else - gluOrtho2D(-2.0 * (GLfloat) w / (GLfloat) h, 2.0 * (GLfloat) w / (GLfloat) h, -2.0, 2.0); - glMatrixMode(GL_MODELVIEW); /* return to modelview mode */ + glMatrixMode(GL_MODELVIEW); } /**