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:
610f7d0
)
(no commit message)
author
Ash Tyndall
<
[email protected]
>
Sun, 9 Oct 2011 11:46:48 +0000
(19:46 +0800)
committer
Ash Tyndall
<
[email protected]
>
Sun, 9 Oct 2011 11:46:48 +0000
(19:46 +0800)
scene.c
patch
|
blob
|
history
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
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
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
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
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
glutSwapBuffers();
\r
}
\r
\r
UCC
git Repository :: git.ucc.asn.au