X-Git-Url: https://git.jsancho.org/?a=blobdiff_plain;f=Source%2FGlobals.cpp;h=05b4ff4391fd799139c713a772d36bea43835fe4;hb=bbf23bafff5fa21216ae4d182b77180a23d2b99f;hp=0a4c6d26a3f9149d042d61bd8a37c93c7a6e2469;hpb=0cca0c495c7dc29d134a10d7eed5de1f377c99bf;p=lugaru.git diff --git a/Source/Globals.cpp b/Source/Globals.cpp index 0a4c6d2..05b4ff4 100644 --- a/Source/Globals.cpp +++ b/Source/Globals.cpp @@ -1,4 +1,4 @@ -#include "gl.h" +#include "gamegl.h" #include "Quaternions.h" #include "Lights.h" #include "Skeleton.h" @@ -14,6 +14,10 @@ #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; +