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:
fa7aa48
)
(no commit message)
author
Ash Tyndall
<
[email protected]
>
Thu, 20 Oct 2011 13:23:44 +0000
(21:23 +0800)
committer
Ash Tyndall
<
[email protected]
>
Thu, 20 Oct 2011 13:23:44 +0000
(21:23 +0800)
helper.c
patch
|
blob
|
history
diff --git
a/helper.c
b/helper.c
index
5c82e41
..
20ce8b5
100644
(file)
--- a/
helper.c
+++ b/
helper.c
@@
-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);
- 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*SizeX,0.0, y*SizeY);
+ glVertex3f((x+1)*SizeX,0.0, y*SizeY);
glEnd();
}
UCC
git Repository :: git.ucc.asn.au