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:
6bc2cf4
)
(no commit message)
author
Ash Tyndall
<
[email protected]
>
Thu, 20 Oct 2011 01:53:51 +0000
(09:53 +0800)
committer
Ash Tyndall
<
[email protected]
>
Thu, 20 Oct 2011 01:53:51 +0000
(09:53 +0800)
scene.c
patch
|
blob
|
history
diff --git
a/scene.c
b/scene.c
index
914f3a6
..
9f8d21f
100644
(file)
--- a/
scene.c
+++ b/
scene.c
@@
-606,7
+606,13
@@
void drawSquare(int recurseLevel, float x1, float z1, float x2, float z2) {
* Draw a floor by calling the drawSquare recursion
\r
*/
\r
void drawFloor() {
\r
* Draw a floor by calling the drawSquare recursion
\r
*/
\r
void drawFloor() {
\r
- drawSquare(0, -floorSize, -floorSize, floorSize, floorSize);
\r
+ //drawSquare(0, -floorSize, -floorSize, floorSize, floorSize);
\r
+ glBegin(GL_QUADS);
\r
+ glVertex3f(-18.0, 0.0, 27.0);
\r
+ glVertex3f(27.0, 0.0, 27.0);
\r
+ glVertex3f(27.0, 0.0, -18.0);
\r
+ glVertex3f(-18.0, 0.0, -18.0);
\r
+ glEnd();
\r
}
\r
\r
/**
\r
}
\r
\r
/**
\r
@@
-635,7
+641,7
@@
void display() {
glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
\r
glLoadIdentity();
\r
gluLookAt(
\r
glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
\r
glLoadIdentity();
\r
gluLookAt(
\r
- 0.0,
1
0.0, 10.0, /* eye is at (x,y,z) */
\r
+ 0.0, 0.0, 10.0, /* eye is at (x,y,z) */
\r
0.0, 0.0, 0.0, /* center is at (x,y,z) */
\r
0.0, 1.0, 0.0 /* up is in postivie Y direction */
\r
);
\r
0.0, 0.0, 0.0, /* center is at (x,y,z) */
\r
0.0, 1.0, 0.0 /* up is in postivie Y direction */
\r
);
\r
UCC
git Repository :: git.ucc.asn.au