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]
/
helper.c
diff --git
a/helper.c
b/helper.c
index
9eebe50
..
20ce8b5
100644
(file)
--- a/
helper.c
+++ b/
helper.c
@@
-247,10
+247,10
@@
void drawSquare(int recurseLevel, float x1, float z1, float x2, float z2) {
glEnd();
}*/
glEnd();
}*/
- unsigned int GridSizeX = 1
6
;
- unsigned int GridSizeY = 1
6
;
- unsigned int SizeX =
8
;
- unsigned int SizeY =
8
;
+ unsigned int GridSizeX = 1
00
;
+ unsigned int GridSizeY = 1
00
;
+ unsigned int SizeX =
2
;
+ unsigned int SizeY =
2
;
for (unsigned int x =0;x<GridSizeX;++x)
for (unsigned int x =0;x<GridSizeX;++x)
@@
-261,10
+261,11
@@
void drawSquare(int recurseLevel, float x1, float z1, float x2, float z2) {
else
glColor3f(0.0f,0.0f,0.0f); //black
glBegin(GL_QUADS);
else
glColor3f(0.0f,0.0f,0.0f); //black
glBegin(GL_QUADS);
- glVertex3f( x*SizeX,0.0, y*SizeY);
- glVertex3f((x+1)*SizeX,0.0, y*SizeY);
+
glVertex3f((x+1)*SizeX,0.0, (y+1)*SizeY);
glVertex3f( x*SizeX,0.0, (y+1)*SizeY);
glVertex3f((x+1)*SizeX,0.0, (y+1)*SizeY);
glVertex3f( x*SizeX,0.0, (y+1)*SizeY);
+ glVertex3f( x*SizeX,0.0, y*SizeY);
+ glVertex3f((x+1)*SizeX,0.0, y*SizeY);
glEnd();
}
glEnd();
}
UCC
git Repository :: git.ucc.asn.au