git.ucc.asn.au
/
atyndall
/
cits2231.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
(no commit message)
[atyndall/cits2231.git]
/
scene.c
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
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
glPushMatrix();
\r
glLightfv(GL_LIGHT0, GL_POSITION, lightPosition);
\r
\r
@@
-559,8
+558,8
@@
void display() {
glDisable(GL_BLEND);
\r
\r
glPushMatrix();
\r
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
\r
glutSolidTeapot(5); // Draw teapot for test
\r
glPopMatrix();
\r
UCC
git Repository :: git.ucc.asn.au