#pragma once #include "WindowManager.h" #include "MenuManager.h" #include "WorldManager.h" #include "Vectors.h" #ifndef __MWERKS__ #include "WindowManager.c" #include "MenuManager.c" #include "WorldManager.c" #include "Vectors.c" #endif #define CAMERASPEED 0.001 #define ROTATESPEED 0.0005 #define STATIONARY 0 #define FORWARDS 1 #define BACKWARDS 2 #define LEFT 3 #define RIGHT 4 #define UP 5 #define DOWN 6 #define ROLLLEFT 7 #define ROLLRIGHT 8 typedef struct VGame { EventLoopTimerRef timerRef; VWindow w; VMenu m; VWorld world; Vector cMovement; Vector cRotate; int Direction; int Rotation; UnsignedWide lastTime; /* Temporary: for testing */ GLUquadricObj * Sphere; float Rot; Boolean Paused; } VGame; void InitGame(VGame * g); void RunGame(VGame * g); void CleanUpGame(VGame * g);