git.ucc.asn.au
/
atyndall
/
cits2231.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
(no commit message)
[atyndall/cits2231.git]
/
globals.h
diff --git
a/globals.h
b/globals.h
index
d856c57
..
dc92453
100644
(file)
--- a/
globals.h
+++ b/
globals.h
@@
-39,7
+39,7
@@
extern GLfloat lightPosition[];
extern int moving, startx, starty;
extern int lightMoving, lightStartX, lightStartY;
extern int moving, startx, starty;
extern int lightMoving, lightStartX, lightStartY;
-
+/* Time varying or user-controled variables. */
extern float jump;
extern float lightAngle, lightHeight;
extern GLfloat angle;
extern float jump;
extern float lightAngle, lightHeight;
extern GLfloat angle;
@@
-53,9
+53,6
@@
extern GLfloat far;
extern GLfloat nearClip;
extern GLfloat farClip;
extern GLfloat nearClip;
extern GLfloat farClip;
-/* Zoom factor for mouse movements */
-extern GLfloat zoomFactor;
-
/* Recursion level for floor drawing */
extern int drawFloorRecurse;
/* Recursion level for floor drawing */
extern int drawFloorRecurse;
@@
-63,15
+60,33
@@
extern int drawFloorRecurse;
extern int floorSize;
/* Current camera position */
extern int floorSize;
/* Current camera position */
-extern GLfloat camx, camy, camz;
+extern GLfloat camx, camy, camz, rot;
+
+/* Length of axis lines */
+extern GLfloat lineLength;
/* Light 0 parameters */
extern GLfloat diffuse0[];
extern GLfloat ambient0[];
extern GLfloat specular0[];
extern GLfloat emission0[];
/* Light 0 parameters */
extern GLfloat diffuse0[];
extern GLfloat ambient0[];
extern GLfloat specular0[];
extern GLfloat emission0[];
+
+extern GLfloat direction0[];
extern GLfloat light0_pos[];
extern GLfloat light0_pos[];
+
+extern GLfloat shine;
+
extern GLfloat glightmodel[];
extern GLfloat glightmodel[];
-#endif /* GLOBALS_H */
+/* Material types */
+extern GLfloat ambient[];
+extern GLfloat diffuse[];
+extern GLfloat specular[];
+
+/* Beginning width, height */
+extern int width, height;
+
+/* Zoom and rotate tracking */
+GLfloat zoomFactor, rotateFactor;
+#endif /* GLOBALS_H */
\ No newline at end of file
UCC
git Repository :: git.ucc.asn.au