2 Copyright (C) 2003, 2010 - Wolfire Games
4 This file is part of Lugaru.
6 Lugaru is free software; you can redistribute it and/or
7 modify it under the terms of the GNU General Public License
8 as published by the Free Software Foundation; either version 2
9 of the License, or (at your option) any later version.
11 This program is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
15 See the GNU General Public License for more details.
17 You should have received a copy of the GNU General Public License
18 along with this program; if not, write to the Free Software
19 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
25 #include "Quaternions.h"
34 #include "TGALoader.h"
35 #include "openal_wrapper.h"
38 #include "Constants.h"
39 #include "Animation.h"
41 bool visibleloading = 0;
44 bool ismotionblur = 0;
45 float usermousesensitivity = 0;
53 float targetblurness = 0;
55 float precipdelay = 0;
57 float oldgamespeed = 0;
58 float tintr = 0,tintg = 0,tintb = 0;
61 float realmultiplier = 0;
62 float screenwidth = 0,screenheight = 0;
63 float viewdistance = 0;
72 Animation animation[animation_count];
73 Skeleton testskeleton;
78 SDL_Surface *sdlscreen;
84 float realtexdetail = 0;
85 float terraindetail = 0;
90 GLubyte bloodText[512*512*3] = {0};
91 GLubyte wolfbloodText[512*512*3] = {0};
92 float colors[3] = {0};
95 float camerashake = 0;
102 bool damageeffects = 0;
103 //apvector<Person> player(maxplayers);
104 Person player[maxplayers];
106 bool ambientsound = 0;
110 float flashamount = 0,flashr = 0,flashg = 0,flashb = 0;
113 float motionbluramount = 0;
114 bool keyboardfrozen = 0;
115 char mapname[256] = {0};
116 bool loadingstuff = 0;
117 bool stillloading = 0;
119 bool showdamagebar = 0;
122 bool velocityblur = 0;
129 GLubyte texturearray[512*512*3] = {0};
130 int loadscreencolor = 0;
131 int whichjointstartarray[26] = {0};
132 int whichjointendarray[26] = {0};
133 int kBitsPerPixel = 0;
137 int hotspottype[40] = {0};
138 float hotspotsize[40] = {0};
139 char hotspottext[40][256] = {0};
140 int currenthotspot = 0;
147 int numdialogues = 0;
148 int numdialogueboxes[max_dialogues] = {0};
149 int dialoguetype[max_dialogues] = {0};
150 int dialogueboxlocation[max_dialogues][max_dialoguelength] = {0};
151 float dialogueboxcolor[max_dialogues][max_dialoguelength][3] = {0};
152 int dialogueboxsound[max_dialogues][max_dialoguelength] = {0};
153 char dialoguetext[max_dialogues][max_dialoguelength][128] = {0};
154 char dialoguename[max_dialogues][max_dialoguelength][64] = {0};
155 XYZ dialoguecamera[max_dialogues][max_dialoguelength]; //l = {0};
156 XYZ participantlocation[max_dialogues][10]; // = {0};
157 int participantfocus[max_dialogues][max_dialoguelength] = {0};
158 int participantaction[max_dialogues][max_dialoguelength] = {0};
159 float participantrotation[max_dialogues][10] = {0};
160 XYZ participantfacing[max_dialogues][max_dialoguelength][10]; // = {0};
161 float dialoguecamerarotation[max_dialogues][max_dialoguelength] = {0};
162 float dialoguecamerarotation2[max_dialogues][max_dialoguelength] = {0};
164 int whichdialogue = 0;
166 float dialoguetime = 0;
167 int dialoguegonethrough[20] = {0};
171 float slomospeed = 0;
174 int tutoriallevel = 0;
175 int tutorialstage = 0;
176 float tutorialstagetime = 0;
177 float tutorialmaxtime = 0;
178 float tutorialsuccess = 0;
182 float damagedealt = 0;
186 int editoractive = 0;
187 int editorpathtype = 0;
189 bool reversaltrain = 0;
193 bool skyboxtexture = 0;
197 float skyboxlightr = 0;
198 float skyboxlightg = 0;
199 float skyboxlightb = 0;
202 float hostiletime = 0;
204 XYZ envsound[30]; // = {0};
205 float envsoundvol[30] = {0};
206 float envsoundlife[30] = {0};
213 bool proportionweird = 0;
214 bool vertexweird[6] = {0};
223 bool gamestarted = 0;
225 //TextureList textures;
227 StereoMode stereomode = stereoNone;
228 StereoMode newstereomode = stereoNone;
229 float stereoseparation = 0.05;
230 bool stereoreverse = false;