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;
69 Animation animation[animation_count];
72 SDL_Window *sdlwindow;
78 float realtexdetail = 0;
83 GLubyte bloodText[512 * 512 * 3] = {0};
84 GLubyte wolfbloodText[512 * 512 * 3] = {0};
86 float camerashake = 0;
90 bool musictoggle = false;
93 bool damageeffects = false;
94 bool ambientsound = false;
95 bool mousejump = false;
97 bool winfreeze = false;
98 float flashamount = 0, flashr = 0, flashg = 0, flashb = 0;
100 float motionbluramount = 0;
101 bool stillloading = false;
102 bool showpoints = false;
103 bool showdamagebar = false;
104 bool alwaysblur = false;
105 bool immediate = false;
106 bool velocityblur = false;
109 int whichjointstartarray[26] = {0};
110 int whichjointendarray[26] = {0};
114 int hotspottype[40] = {0};
115 float hotspotsize[40] = {0};
116 char hotspottext[40][256] = {0};
117 int currenthotspot = 0;
122 float slomospeed = 0;
125 int tutoriallevel = 0;
126 int tutorialstage = 0;
127 float tutorialstagetime = 0;
128 float tutorialmaxtime = 0;
129 float tutorialsuccess = 0;
131 bool againbonus = false;
133 float damagedealt = 0;
137 int editoractive = 0;
138 int editorpathtype = 0;
140 bool reversaltrain = false;
141 bool cananger = false;
142 bool canattack = false;
144 bool skyboxtexture = false;
148 float skyboxlightr = 0;
149 float skyboxlightg = 0;
150 float skyboxlightb = 0;
153 float hostiletime = 0;
156 float envsoundvol[30] = {0};
157 float envsoundlife[30] = {0};
160 bool debugmode = false;
162 bool campaign = false;
164 bool gamestarted = false;
166 StereoMode stereomode = stereoNone;
167 StereoMode newstereomode = stereoNone;
168 float stereoseparation = 0.05;
169 bool stereoreverse = false;