From: Ash Tyndall Date: Thu, 20 Oct 2011 11:59:39 +0000 (+0800) Subject: (no commit message) X-Git-Url: https://git.ucc.asn.au/?p=atyndall%2Fcits2231.git;a=commitdiff_plain;h=88466de756063a6cd3beab3996d9ee57bdb84e89 --- diff --git a/scene.c b/scene.c index cc687e7..e8046aa 100644 --- a/scene.c +++ b/scene.c @@ -184,7 +184,7 @@ void makeMenu() { */ void windowReshape(int w, int h) { glViewport(0, 0, (GLsizei) w, (GLsizei) h); - glMatrixMode(GL_PROJECTION); + /*glMatrixMode(GL_PROJECTION); glLoadIdentity(); if (w <= h) glFrustum(near, far, near*(GLfloat)h/(GLfloat)w, @@ -193,7 +193,7 @@ void windowReshape(int w, int h) { glFrustum(near*(GLfloat)w/(GLfloat)h, far*(GLfloat)w/(GLfloat)h, near, far, nearClip, farClip); glMatrixMode(GL_MODELVIEW); - glLoadIdentity(); + glLoadIdentity();*/ } /** @@ -295,17 +295,17 @@ void motion(int x, int y) { void display() { glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); glLoadIdentity(); - gluLookAt( - 0.0, 0.0, 30.0, /* eye is at (x,y,z) */ - 0.0, 0.0, 0.0, /* center is at (x,y,z) */ - 0.0, 1.0, 0.0 /* up is in postivie Y direction */ - ); + //gluLookAt( + // 0.0, 0.0, 30.0, /* eye is at (x,y,z) */ + // 0.0, 0.0, 0.0, /* center is at (x,y,z) */ + // 0.0, 1.0, 0.0 /* up is in postivie Y direction */ + // ); - glTranslatef(camx, camy, camz); + //glTranslatef(camx, camy, camz); // **NOTE: Currently this rotation function is all that moves the camera off // the flat surface. Need to integrate function into gluLookAt - glRotatef(rot, 1.0, 0.0, 0.0); + //glRotatef(rot, 1.0, 0.0, 0.0); /* Reposition the light source. */ lightPosition[0] = 12*cos(lightAngle); @@ -350,8 +350,8 @@ void display() { * init function; sets initial OpenGL state */ void init() { - glMatrixMode(GL_PROJECTION); - glLoadIdentity(); + //glMatrixMode(GL_PROJECTION); + //glLoadIdentity(); //gluPerspective( // 60.0, /* field of view in degree */