char dataDir[200]; // Stores the directory name for the meshes and textures.
-int moving, startx, starty;
-
-/* Recursion level for floor drawing */
-int drawFloorRecurse = 8;
+int startx, starty;
/* Size of floor, from -n to n, floorSize must be divisible by squareSize */
int floorSize = 200;
// Stores the directory name for the meshes and textures.
extern char dataDir[];
-extern int moving, startx, starty;
-
-/* Recursion level for floor drawing */
-extern int drawFloorRecurse;
+extern int startx, starty;
/* Size of floor, from -n to n */
extern int floorSize;
if ( buttonSelected == GLUT_LEFT_BUTTON ) {\r
// w: rotate, h: zoom\r
zoom += (y - starty);\r
- printf("zoom is %f\n", zoom);\r
} else if ( buttonSelected == GLUT_MIDDLE_BUTTON ) {\r
// w: rotate, h: tilt\r
camAngle += (y - starty);\r
}\r
\r
starty = y;\r
+ printf("zoom is %f, y is %f starty is %f\n", zoom, y, starty);\r
startx = x;\r
\r
break;\r