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 modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation; either version 2 of the License, or
9 (at your option) any later version.
11 Lugaru 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. See the
14 GNU General Public License for more details.
16 You should have received a copy of the GNU General Public License
17 along with Lugaru. If not, see <http://www.gnu.org/licenses/>.
23 #include "Quaternions.h"
32 #include "TGALoader.h"
33 #include "openal_wrapper.h"
36 #include "Animation.h"
38 bool visibleloading = 0;
41 bool ismotionblur = false;
42 float usermousesensitivity = 0;
43 bool floatjump = false;
44 bool cellophane = false;
45 bool autoslomo = false;
47 bool invertmouse = false;
48 bool texttoggle = false;
50 float targetblurness = 0;
52 float precipdelay = 0;
54 float oldgamespeed = 0;
55 float tintr = 0, tintg = 0, tintb = 0;
58 float realmultiplier = 0;
59 float screenwidth = 0, screenheight = 0;
61 float viewdistance = 0;
70 Animation animation[animation_count];
71 Skeleton testskeleton;
76 SDL_Window *sdlwindow;
82 float realtexdetail = 0;
87 GLubyte bloodText[512 * 512 * 3] = {0};
88 GLubyte wolfbloodText[512 * 512 * 3] = {0};
89 float colors[3] = {0};
92 float camerashake = 0;
96 bool musictoggle = false;
99 bool damageeffects = false;
100 bool ambientsound = false;
101 bool mousejump = false;
103 bool winfreeze = false;
104 float flashamount = 0, flashr = 0, flashg = 0, flashb = 0;
106 bool vblsync = false;
107 float motionbluramount = 0;
108 bool keyboardfrozen = false;
109 bool loadingstuff = false;
110 bool stillloading = false;
111 bool showpoints = false;
112 bool showdamagebar = false;
113 bool alwaysblur = false;
114 bool immediate = false;
115 bool velocityblur = false;
121 int whichjointstartarray[26] = {0};
122 int whichjointendarray[26] = {0};
123 int kBitsPerPixel = 0;
127 int hotspottype[40] = {0};
128 float hotspotsize[40] = {0};
129 char hotspottext[40][256] = {0};
130 int currenthotspot = 0;
137 float slomospeed = 0;
140 int tutoriallevel = 0;
141 int tutorialstage = 0;
142 float tutorialstagetime = 0;
143 float tutorialmaxtime = 0;
144 float tutorialsuccess = 0;
146 bool againbonus = false;
148 float damagedealt = 0;
152 int editoractive = 0;
153 int editorpathtype = 0;
155 bool reversaltrain = false;
156 bool cananger = false;
157 bool canattack = false;
159 bool skyboxtexture = false;
163 float skyboxlightr = 0;
164 float skyboxlightg = 0;
165 float skyboxlightb = 0;
168 float hostiletime = 0;
170 XYZ envsound[30]; // = {0};
171 float envsoundvol[30] = {0};
172 float envsoundlife[30] = {0};
176 bool tilt2weird = false;
177 bool tiltweird = false;
178 bool midweird = false;
179 bool proportionweird = false;
180 bool vertexweird[6] = {0};
182 bool debugmode = false;
185 bool campaign = false;
187 bool gamestarted = false;
189 //TextureList textures;
191 StereoMode stereomode = stereoNone;
192 StereoMode newstereomode = stereoNone;
193 float stereoseparation = 0.05;
194 bool stereoreverse = false;