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 "Animation.h"
40 bool visibleloading = 0;
43 bool ismotionblur = false;
44 float usermousesensitivity = 0;
45 bool floatjump = false;
46 bool cellophane = false;
47 bool autoslomo = false;
49 bool invertmouse = false;
50 bool texttoggle = false;
52 float targetblurness = 0;
54 float precipdelay = 0;
56 float oldgamespeed = 0;
57 float tintr = 0,tintg = 0,tintb = 0;
60 float realmultiplier = 0;
61 float screenwidth = 0,screenheight = 0;
62 float viewdistance = 0;
71 Animation animation[animation_count];
72 Skeleton testskeleton;
77 SDL_Surface *sdlscreen;
83 float realtexdetail = 0;
88 GLubyte bloodText[512*512*3] = {0};
89 GLubyte wolfbloodText[512*512*3] = {0};
90 float colors[3] = {0};
93 float camerashake = 0;
97 bool musictoggle = false;
100 bool damageeffects = false;
102 bool ambientsound = false;
103 bool mousejump = false;
105 bool winfreeze = false;
106 float flashamount = 0,flashr = 0,flashg = 0,flashb = 0;
108 bool vblsync = false;
109 float motionbluramount = 0;
110 bool keyboardfrozen = false;
111 bool loadingstuff = false;
112 bool stillloading = false;
113 bool showpoints = false;
114 bool showdamagebar = false;
115 bool alwaysblur = false;
116 bool immediate = false;
117 bool velocityblur = false;
124 int whichjointstartarray[26] = {0};
125 int whichjointendarray[26] = {0};
126 int kBitsPerPixel = 0;
130 int hotspottype[40] = {0};
131 float hotspotsize[40] = {0};
132 char hotspottext[40][256] = {0};
133 int currenthotspot = 0;
140 float slomospeed = 0;
143 int tutoriallevel = 0;
144 int tutorialstage = 0;
145 float tutorialstagetime = 0;
146 float tutorialmaxtime = 0;
147 float tutorialsuccess = 0;
149 bool againbonus = false;
151 float damagedealt = 0;
155 int editoractive = 0;
156 int editorpathtype = 0;
158 bool reversaltrain = false;
159 bool cananger = false;
160 bool canattack = false;
162 bool skyboxtexture = false;
166 float skyboxlightr = 0;
167 float skyboxlightg = 0;
168 float skyboxlightb = 0;
171 float hostiletime = 0;
173 XYZ envsound[30]; // = {0};
174 float envsoundvol[30] = {0};
175 float envsoundlife[30] = {0};
179 bool tilt2weird = false;
180 bool tiltweird = false;
181 bool midweird = false;
182 bool proportionweird = false;
183 bool vertexweird[6] = {0};
185 bool debugmode = false;
190 bool campaign = false;
192 bool gamestarted = false;
194 //TextureList textures;
196 StereoMode stereomode = stereoNone;
197 StereoMode newstereomode = stereoNone;
198 float stereoseparation = 0.05;
199 bool stereoreverse = false;