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:
6a2be9d
)
(no commit message)
author
Ash Tyndall
<
[email protected]
>
Tue, 18 Oct 2011 08:02:45 +0000
(16:02 +0800)
committer
Ash Tyndall
<
[email protected]
>
Tue, 18 Oct 2011 08:02:45 +0000
(16:02 +0800)
scene.c
patch
|
blob
|
history
diff --git
a/scene.c
b/scene.c
index
82d3cef
..
e1dbe14
100644
(file)
--- a/
scene.c
+++ b/
scene.c
@@
-549,7
+549,6
@@
void display() {
lightPosition[2] = 12*sin(lightAngle);
\r
lightPosition[3] = 0.0;
\r
\r
- glMatrixMode(GL_PROJECTION);
\r
glPushMatrix();
\r
glLightfv(GL_LIGHT0, GL_POSITION, lightPosition);
\r
\r
@@
-559,8
+558,8
@@
void display() {
glDisable(GL_BLEND);
\r
\r
glPushMatrix();
\r
- glLoadIdentity();
\r
- glTranslatef(0.0,
-90.0, -6
0.0);
\r
+
\r
+ glTranslatef(0.0,
0.0,
0.0);
\r
\r
glutSolidTeapot(5); // Draw teapot for test
\r
glPopMatrix();
\r
UCC
git Repository :: git.ucc.asn.au