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 - calculates scene size */
52 /* Near and far clipping planes - calculates clipping planes */
53 extern GLfloat nearClip;
54 extern GLfloat farClip;
56 /* Zoom factor for mouse movements */
57 extern GLfloat zoomFactor;
59 /* Recursion level for floor drawing */
60 extern int drawFloorRecurse;
62 /* Size of floor, from -n to n */
65 /* Light 0 parameters */
66 extern GLfloat diffuse0[];
67 extern GLfloat ambient0[];
68 extern GLfloat specular0[];
69 extern GLfloat emission0[];
70 extern GLfloat light0_pos[];
71 extern GLfloat glightmodel[];
73 #endif /* GLOBALS_H */