2 * Global Variables Header File
3 * @author Ashley Tyndall (20915779), Jenna de la Harpe (20367932)
12 #define NMESH 54 // The number of meshes (in the models-textures dir)
13 #define NTEXTURE 30 // The number of textures (in the models-textures dir)
14 #define MAXOBJECTS 256
16 // Meshes and textures arrays
17 extern mesh* meshes[];
18 extern texture* textures[];
21 extern const char *textureMenuEntries[];
22 extern const char *objectMenuEntries[];
24 // Scene object arrays
25 extern SceneObject sceneObjs[];
28 // Directories containing models
29 extern char *dirDefault1;
30 extern char *dirDefault2;
32 // Stores the directory name for the meshes and textures.
33 extern char dataDir[];
36 extern GLfloat lightColor[];
37 extern GLfloat lightPosition[];
39 extern int moving, startx, starty;
40 extern int lightMoving, lightStartX, lightStartY;
44 extern float lightAngle, lightHeight;
46 extern GLfloat angle2;
48 /* Near and far parameters */
52 /* Zoom factor for mouse movements */
53 extern GLfloat zoomFactor;
55 /* Recursion level for floor drawing */
56 extern int drawFloorRecurse;
58 /* Size of floor, from -n to n */
61 /* Light 0 parameters */
62 extern GLfloat diffuse0[];
63 extern GLfloat ambient0[];
64 extern GLfloat specular0[];
65 extern GLfloat emission0[];
66 extern GLfloat light0_pos[];
67 extern GLfloat glightmodel[];
69 #endif /* GLOBALS_H */