X-Git-Url: https://git.jsancho.org/?a=blobdiff_plain;f=Source%2FGlobals.cpp;h=05b4ff4391fd799139c713a772d36bea43835fe4;hb=21af29986bbe6c1ab71c8c68244cf3250caf15f6;hp=f5598e766cf8356718d0a32499b0e7873a4ea733;hpb=8562aa5bebc97ea8a61d056aec3847030c6985b7;p=lugaru.git diff --git a/Source/Globals.cpp b/Source/Globals.cpp index f5598e7..05b4ff4 100644 --- a/Source/Globals.cpp +++ b/Source/Globals.cpp @@ -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; +