git.ucc.asn.au
/
atyndall
/
cits2231.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
28bcb0c
)
(no commit message)
author
Ash Tyndall
<
[email protected]
>
Sun, 9 Oct 2011 11:50:07 +0000
(19:50 +0800)
committer
Ash Tyndall
<
[email protected]
>
Sun, 9 Oct 2011 11:50:07 +0000
(19:50 +0800)
scene.c
patch
|
blob
|
history
diff --git
a/scene.c
b/scene.c
index
ac652d3
..
963f78b
100644
(file)
--- a/
scene.c
+++ b/
scene.c
@@
-510,12
+510,13
@@
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
+ gluLookAt(0.7f, 0.4f, 0.9f, -2.0f, -1.0f, -7.0f, 1.0f, 10.0f, 1.0f);
\r
+
\r
+
\r
+ glMatrixMode(GL_PROJECTION);
\r
+ glLoadIdentity();
\r
glutSwapBuffers();
\r
}
\r
\r
UCC
git Repository :: git.ucc.asn.au