2 Copyright (C) 2003, 2010 - Wolfire Games
3 Copyright (C) 2010-2016 - Lugaru contributors (see AUTHORS file)
5 This file is part of Lugaru.
7 Lugaru is free software; you can redistribute it and/or modify
8 it under the terms of the GNU General Public License as published by
9 the Free Software Foundation; either version 2 of the License, or
10 (at your option) any later version.
12 Lugaru is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 GNU General Public License for more details.
17 You should have received a copy of the GNU General Public License
18 along with Lugaru. If not, see <http://www.gnu.org/licenses/>.
24 #include "Quaternions.h"
34 #include "openal_wrapper.h"
37 #include "Animation.h"
39 bool visibleloading = 0;
42 bool ismotionblur = false;
43 float usermousesensitivity = 0;
44 bool floatjump = false;
45 bool cellophane = false;
46 bool autoslomo = false;
48 bool invertmouse = false;
49 bool texttoggle = false;
51 float targetblurness = 0;
53 float precipdelay = 0;
55 float oldgamespeed = 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};
91 float camerashake = 0;
95 bool musictoggle = false;
98 bool damageeffects = false;
99 bool ambientsound = false;
100 bool mousejump = false;
102 bool winfreeze = false;
103 float flashamount = 0, flashr = 0, flashg = 0, flashb = 0;
105 bool vblsync = false;
106 float motionbluramount = 0;
107 bool keyboardfrozen = false;
108 bool loadingstuff = false;
109 bool stillloading = false;
110 bool showpoints = false;
111 bool showdamagebar = false;
112 bool alwaysblur = false;
113 bool immediate = false;
114 bool velocityblur = false;
120 int whichjointstartarray[26] = {0};
121 int whichjointendarray[26] = {0};
122 int kBitsPerPixel = 0;
126 int hotspottype[40] = {0};
127 float hotspotsize[40] = {0};
128 char hotspottext[40][256] = {0};
129 int currenthotspot = 0;
136 float slomospeed = 0;
139 int tutoriallevel = 0;
140 int tutorialstage = 0;
141 float tutorialstagetime = 0;
142 float tutorialmaxtime = 0;
143 float tutorialsuccess = 0;
145 bool againbonus = false;
147 float damagedealt = 0;
151 int editoractive = 0;
152 int editorpathtype = 0;
154 bool reversaltrain = false;
155 bool cananger = false;
156 bool canattack = false;
158 bool skyboxtexture = false;
162 float skyboxlightr = 0;
163 float skyboxlightg = 0;
164 float skyboxlightb = 0;
167 float hostiletime = 0;
170 float envsoundvol[30] = {0};
171 float envsoundlife[30] = {0};
175 bool tilt2weird = false;
176 bool tiltweird = false;
177 bool midweird = false;
178 bool proportionweird = false;
179 bool vertexweird[6] = {0};
180 bool debugmode = false;
183 bool campaign = false;
185 bool gamestarted = false;
187 StereoMode stereomode = stereoNone;
188 StereoMode newstereomode = stereoNone;
189 float stereoseparation = 0.05;
190 bool stereoreverse = false;