#ifndef _WIN32 #include #endif #include "mapviewer.h" using namespace std; int ViewMode; char *progname; char *progdir; #ifdef GLEW bool useGLEW = 1; #else bool useGLEW = 0; #endif CGame Game; CViewer Viewer; CGLView GLView; CWorld World; CCamera Camera; CDirectory Directory; CFileLoader FileLoader; CWater Water; CSky Sky; CClock Clock; GLfloat planex = 0; GLfloat planey = 0; GLfloat planescale = 1; void exiterror(const char *s, const char *t) { cerr <= 2 && (strcmp(argv[1], "-c") == 0)) { ViewMode = CLUMPVIEWER; return Viewer.Load(argc, argv); } else { ViewMode = GAME; return Game.Load(argc, argv); } }