X-Git-Url: https://git.ucc.asn.au/?p=atyndall%2Fcits2231.git;a=blobdiff_plain;f=globals.h;h=fe6d362eae69430bfbc5c9321951c377cef1d173;hp=058e32c8c2b54cf42df5cf89f0f2584a81d1f2f7;hb=c04cf2176fc88d341416c24667ba66dc3600c4d0;hpb=f1c86cda52b306cdfbe62e1776eb38cff811f47b diff --git a/globals.h b/globals.h index 058e32c..fe6d362 100644 --- a/globals.h +++ b/globals.h @@ -13,6 +13,10 @@ #define NTEXTURE 30 // The number of textures (in the models-textures dir) #define MAXOBJECTS 256 +#ifndef M_PI +#define M_PI 3.14159265358979323846 +#endif + // Meshes and textures arrays extern mesh* meshes[]; extern texture* textures[]; @@ -35,10 +39,7 @@ extern char *dirDefault2; // 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; @@ -86,8 +87,8 @@ extern int width, height; /* Zoom and rotate tracking */ extern GLfloat zoom, rotate, camAngle; -extern GLfloat zoomFactor, rotateFactor, camAngleFactor; -extern GLfloat leftrightFactor, nearfarFactor, bigsmallFactor, updownFactor; +extern GLfloat zoomFactor, camRotateFactor, camAngleFactor; +extern GLfloat leftrightFactor, nearfarFactor, bigsmallFactor, updownFactor, rotateFactor, texscaleFactor; /* Texture state tracking */ extern int currentGroundTexture, currentMeshTexture;