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

diff --git a/scene.c b/scene.c
index 860d821..ac652d3 100644 (file)
--- a/scene.c
+++ b/scene.c
@@ -510,8 +510,12 @@ void display() {
    glTranslatef( 0.0f, 0.0f, -5.0f); // Move into the Screen 10.0\r
    glutSolidTeapot(1);\r
 \r
+glMatrixMode(GL_PROJECTION);\r
+  glLoadIdentity();\r
    gluLookAt(0.7f, 0.4f, 0.9f, -2.0f, -1.0f, -7.0f, 1.0f, 10.0f, 1.0f);\r
 \r
+   glMatrixMode(GL_MODELVIEW);\r
+   glLoadIdentity();\r
    glutSwapBuffers();\r
 }\r
 \r

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