]> git.jsancho.org Git - lugaru.git/blobdiff - Source/Globals.cpp
Added GPL license and headers.
[lugaru.git] / Source / Globals.cpp
index 0a4c6d26a3f9149d042d61bd8a37c93c7a6e2469..b40ace082575574246169dc92e858500b1cd0e6c 100644 (file)
@@ -1,4 +1,25 @@
-#include "gl.h"
+/*
+Copyright (C) 2003, 2010 - Wolfire Games
+
+This file is part of Lugaru.
+
+Lugaru is free software; you can redistribute it and/or
+modify it under the terms of the GNU General Public License
+as published by the Free Software Foundation; either version 2
+of the License, or (at your option) any later version.
+
+This program is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  
+
+See the GNU General Public License for more details.
+
+You should have received a copy of the GNU General Public License
+along with this program; if not, write to the Free Software
+Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
+*/
+
+#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 +82,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;
@@ -136,12 +165,12 @@ float dialogueboxcolor[max_dialogues][max_dialoguelength][3] = {0};
 int dialogueboxsound[max_dialogues][max_dialoguelength] = {0};
 char dialoguetext[max_dialogues][max_dialoguelength][128] = {0};
 char dialoguename[max_dialogues][max_dialoguelength][64] = {0};
-XYZ dialoguecamera[max_dialogues][max_dialoguelength] = {0};
-XYZ participantlocation[max_dialogues][10] = {0};
+XYZ dialoguecamera[max_dialogues][max_dialoguelength]; //l = {0};
+XYZ participantlocation[max_dialogues][10]; // = {0};
 int participantfocus[max_dialogues][max_dialoguelength] = {0};
 int participantaction[max_dialogues][max_dialoguelength] = {0};
 float participantrotation[max_dialogues][10] = {0};
-XYZ participantfacing[max_dialogues][max_dialoguelength][10] = {0};
+XYZ participantfacing[max_dialogues][max_dialoguelength][10]; // = {0};
 float dialoguecamerarotation[max_dialogues][max_dialoguelength] = {0};
 float dialoguecamerarotation2[max_dialogues][max_dialoguelength] = {0};
 int indialogue = 0;
@@ -188,7 +217,7 @@ float bonusnum[100] = {0};
 int hostile = 0;
 float hostiletime = 0;
 
-XYZ envsound[30] = {0};
+XYZ envsound[30]; // = {0};
 float envsoundvol[30] = {0};
 float envsoundlife[30] = {0};
 int numenvsounds;
@@ -248,3 +277,4 @@ int maxalarmed = 0;
 bool gamestarted = 0;
 
 //TextureList textures;
+