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:
e204dbd
)
(no commit message)
author
Ash Tyndall
<
[email protected]
>
Thu, 20 Oct 2011 01:55:48 +0000
(09:55 +0800)
committer
Ash Tyndall
<
[email protected]
>
Thu, 20 Oct 2011 01:55:48 +0000
(09:55 +0800)
scene.c
patch
|
blob
|
history
diff --git
a/scene.c
b/scene.c
index
0a186f8
..
2e2f93c
100644
(file)
--- a/
scene.c
+++ b/
scene.c
@@
-133,7
+133,7
@@
GLfloat zoomFactor = 1.0;
int drawFloorRecurse = 5;
\r
\r
/* Size of floor, from -n to n */
\r
int drawFloorRecurse = 5;
\r
\r
/* Size of floor, from -n to n */
\r
-int floorSize =
1
00;
\r
+int floorSize =
2
00;
\r
\r
/* Light 0 parameters */
\r
GLfloat diffuse0[] = {1.0, 1.0, 1.0, 1.0};
\r
\r
/* Light 0 parameters */
\r
GLfloat diffuse0[] = {1.0, 1.0, 1.0, 1.0};
\r
@@
-606,13
+606,7
@@
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
- 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
+ drawSquare(0, -floorSize, -floorSize, floorSize, floorSize);
\r
}
\r
\r
/**
\r
}
\r
\r
/**
\r
UCC
git Repository :: git.ucc.asn.au