]> git.jsancho.org Git - lugaru.git/blobdiff - Source/Globals.cpp
Fixed resolution selection and added 1920x1200 mode for my monitor. :)
[lugaru.git] / Source / Globals.cpp
index 0a4c6d26a3f9149d042d61bd8a37c93c7a6e2469..05b4ff4391fd799139c713a772d36bea43835fe4 100644 (file)
@@ -1,4 +1,4 @@
-#include "gl.h"
+#include "gamegl.h"
 #include "Quaternions.h"
 #include "Lights.h"
 #include "Skeleton.h"
 
 #include "Constants.h"
 
+#if USE_SDL
+#include "SDL.h"
+#endif
+
 bool visibleloading = 0;
 FSOUND_SAMPLE  *samp[100] = {0};
 FSOUND_STREAM * strm[20] = {0};
@@ -57,8 +61,12 @@ Sprites sprites;
 float sps = 0;
 #ifdef WIN32
 HDC hDC;
-#else
+#elif USE_SDL
+SDL_Surface *sdlscreen;
+#elif PLATFORM_MACOSX
 AGLContext gaglContext;
+#else
+#error Define your platform.
 #endif
 int kTextureSize = 0;
 int detail = 0;
@@ -248,3 +256,4 @@ int maxalarmed = 0;
 bool gamestarted = 0;
 
 //TextureList textures;
+