(no commit message)
authorAsh Tyndall <[email protected]>
Sun, 9 Oct 2011 11:46:48 +0000 (19:46 +0800)
committerAsh Tyndall <[email protected]>
Sun, 9 Oct 2011 11:46:48 +0000 (19:46 +0800)
scene.c

diff --git a/scene.c b/scene.c
index 327467d..26d0d42 100644 (file)
--- a/scene.c
+++ b/scene.c
@@ -498,18 +498,20 @@ void display() {
    glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);\r
    glLoadIdentity();\r
 \r
-   glTranslatef(0.0f, 0.0f, 0.0f);\r
+   glTranslatef( 0.0f,  0.0f,  0.0f);\r
    glBegin(GL_QUADS);\r
-     glVertex3f(0.0f, 1.0f, -1.0f);\r
-     glVertex3f(0.0f, 1.0f, 1.0f);\r
-     glVertex3f(0.0f,-1.0f, 1.0f);\r
-     glVertex3f(0.0f,-1.0f, -1.0f);\r
+     glVertex3f( 0.0f,  1.0f, -1.0f);\r
+     glVertex3f( 0.0f,  1.0f,  1.0f);\r
+     glVertex3f( 0.0f, -1.0f,  1.0f);\r
+     glVertex3f( 0.0f, -1.0f, -1.0f);\r
    glEnd();\r
 \r
 \r
-   glTranslatef(0.0f,0.0f,-5.0f); // Move into the Screen 10.0\r
+   glTranslatef( 0.0f, 0.0f, -5.0f); // Move into the Screen 10.0\r
    glutSolidTeapot(1);\r
 \r
+   gluLookAt(1.0f, 1.0f, 0.0f, 0.0f, 0.0f, 0.0f, 1.0f, 0.0f, 1.0f);\r
+\r
    glutSwapBuffers();\r
 }\r
 \r

UCC git Repository :: git.ucc.asn.au