From: Ash Tyndall Date: Sun, 9 Oct 2011 11:46:48 +0000 (+0800) Subject: (no commit message) X-Git-Url: https://git.ucc.asn.au/?a=commitdiff_plain;h=be28556c4dcf730dee7a2bdf6538bd7fef5bc313;p=atyndall%2Fcits2231.git --- diff --git a/scene.c b/scene.c index 327467d..26d0d42 100644 --- a/scene.c +++ b/scene.c @@ -498,18 +498,20 @@ void display() { glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); glLoadIdentity(); - glTranslatef(0.0f, 0.0f, 0.0f); + glTranslatef( 0.0f, 0.0f, 0.0f); glBegin(GL_QUADS); - glVertex3f(0.0f, 1.0f, -1.0f); - glVertex3f(0.0f, 1.0f, 1.0f); - glVertex3f(0.0f,-1.0f, 1.0f); - glVertex3f(0.0f,-1.0f, -1.0f); + glVertex3f( 0.0f, 1.0f, -1.0f); + glVertex3f( 0.0f, 1.0f, 1.0f); + glVertex3f( 0.0f, -1.0f, 1.0f); + glVertex3f( 0.0f, -1.0f, -1.0f); glEnd(); - glTranslatef(0.0f,0.0f,-5.0f); // Move into the Screen 10.0 + glTranslatef( 0.0f, 0.0f, -5.0f); // Move into the Screen 10.0 glutSolidTeapot(1); + gluLookAt(1.0f, 1.0f, 0.0f, 0.0f, 0.0f, 0.0f, 1.0f, 0.0f, 1.0f); + glutSwapBuffers(); }