X-Git-Url: https://git.ucc.asn.au/?p=atyndall%2Fcits2231.git;a=blobdiff_plain;f=scene.c;h=fc078e25777cd0bc54371664c20e04b010908090;hp=e42c48c8fb9e9d9c5c4f567562a52c0731eca9cb;hb=b4de9c715f7b22cc0c08fab65cebc566e938a248;hpb=ffb95814b6e8d3ef616722cd64e07a7af0defd74 diff --git a/scene.c b/scene.c index e42c48c..fc078e2 100644 --- a/scene.c +++ b/scene.c @@ -499,7 +499,7 @@ void makeMenu() { * @param h New height */ void windowReshape(int w, int h) { - glViewport(0, 0, (GLsizei) w, (GLsizei) h); + /*glViewport(0, 0, (GLsizei) w, (GLsizei) h); glMatrixMode(GL_PROJECTION); glLoadIdentity(); if (w <= h) @@ -509,7 +509,7 @@ void windowReshape(int w, int h) { glOrtho(near*(GLfloat)w/(GLfloat)h, far*(GLfloat)w/(GLfloat)h, near, far, near, far); glMatrixMode(GL_MODELVIEW); - glLoadIdentity(); + glLoadIdentity();*/ } /** @@ -694,9 +694,9 @@ void init() { gluPerspective( 60.0, /* field of view in degree */ 1.0, /* aspect ratio */ - -10, /* Z near */ - 10 /* Z far */ - ); + near, /* Z near */ + far /* Z far */ + ); glLightfv(GL_LIGHT0, GL_POSITION, light0_pos);