int drawFloorRecurse = 8;
/* Size of floor, from -n to n, floorSize must be divisible by squareSize */
-int floorSize = 150;
+int floorSize = 400;
float squareSize = 0.5;
/* Current camera x, y, z coords */
for ( int x = -floorSize; x < floorSize; x++ ) {
for ( int z = -floorSize; z < floorSize; z++ ) {
glColor3f( 1.0, 1.0, 1.0 );
-
glVertex3f( (x+1)*squareSize, 0.0, (z+1)*squareSize );
glVertex3f( (x+1)*squareSize, 0.0, z*squareSize );
glVertex3f( x*squareSize, 0.0, z*squareSize );
-
glVertex3f( x*squareSize, 0.0, (z+1)*squareSize );
-
-
-
-
-
-
}
}
glEnd();