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[];
35 extern int moving, startx, starty;
37 /* Recursion level for floor drawing */
38 extern int drawFloorRecurse;
40 /* Size of floor, from -n to n */
43 /* Current camera position */
44 extern GLfloat camx, camy, camz, keyrot;
45 extern GLfloat factor;
47 /* Length of axis lines */
48 extern GLfloat lineLength;
50 /* Light 0 parameters */
51 extern GLfloat diffuse0[];
52 extern GLfloat ambient0[];
53 extern GLfloat specular0[];
54 extern GLfloat direction0[];
56 extern GLfloat lightPosition0[];
58 extern float lightAngle0, lightHeight0;
59 extern int lightMoving0, lightStartX0, lightStartY0;
61 /* Light 1 parameters */
62 extern GLfloat diffuse1[];
63 extern GLfloat ambient1[];
64 extern GLfloat specular1[];
65 extern GLfloat direction1[];
67 extern GLfloat lightPosition1[];
69 extern float lightAngle1, lightHeight1;
70 extern int lightMoving1, lightStartX1, lightStartY1;
73 extern GLfloat ambient[];
74 extern GLfloat diffuse[];
75 extern GLfloat specular[];
77 extern GLfloat glightmodel[];
78 extern GLfloat emission[];
80 /* Beginning width, height */
81 extern int width, height;
83 /* Zoom and rotate tracking */
84 extern GLfloat zoom, rotate;
85 extern GLfloat zoomFactor, rotateFactor;
87 #endif /* GLOBALS_H */