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
aed5e9a
..
e72c64e
100644
(file)
--- a/
helper.c
+++ b/
helper.c
@@
-227,6
+227,8
@@
void drawFloor() {
for ( int z = 0; z <= textureTileSize; z += subTileWidth ) {
glColor3f( 1.0, 1.0, 1.0 );
for ( int z = 0; z <= textureTileSize; z += subTileWidth ) {
glColor3f( 1.0, 1.0, 1.0 );
+ printf("Creating a subtile. Width: %d, x: %d, z: %d, tx: %d, tz: %d\n", subTileWidth, x, z, tx, tz);
+
glTexCoord2f( tx+textureTileSize, tz+textureTileSize );
glVertex3f ( (x+1)*subTileWidth, 0.0, (z+1)*subTileWidth );
glTexCoord2f( tx+textureTileSize, tz+textureTileSize );
glVertex3f ( (x+1)*subTileWidth, 0.0, (z+1)*subTileWidth );
UCC
git Repository :: git.ucc.asn.au