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"
26 #include "Animation/Animation.h"
27 #include "Animation/Skeleton.h"
35 #include "openal_wrapper.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;
71 SDL_Window *sdlwindow;
77 float realtexdetail = 0;
82 GLubyte bloodText[512 * 512 * 3] = {0};
83 GLubyte wolfbloodText[512 * 512 * 3] = {0};
85 float camerashake = 0;
89 bool musictoggle = false;
92 bool damageeffects = false;
93 bool ambientsound = false;
94 bool mousejump = false;
96 bool winfreeze = false;
97 float flashamount = 0, flashr = 0, flashg = 0, flashb = 0;
99 float motionbluramount = 0;
100 bool stillloading = false;
101 bool showpoints = false;
102 bool showdamagebar = false;
103 bool alwaysblur = false;
104 bool immediate = false;
105 bool velocityblur = false;
108 int whichjointstartarray[26] = {0};
109 int whichjointendarray[26] = {0};
113 float slomospeed = 0;
116 int tutoriallevel = 0;
117 int tutorialstage = 0;
118 float tutorialstagetime = 0;
119 float tutorialmaxtime = 0;
120 float tutorialsuccess = 0;
122 bool againbonus = false;
124 float damagedealt = 0;
128 int editoractive = 0;
129 int editorpathtype = 0;
131 bool reversaltrain = false;
132 bool cananger = false;
133 bool canattack = false;
135 bool skyboxtexture = false;
139 float skyboxlightr = 0;
140 float skyboxlightg = 0;
141 float skyboxlightb = 0;
144 float hostiletime = 0;
147 float envsoundvol[30] = {0};
148 float envsoundlife[30] = {0};
151 bool devtools = false;
153 bool gamestarted = false;
155 StereoMode stereomode = stereoNone;
156 StereoMode newstereomode = stereoNone;
157 float stereoseparation = 0.05;
158 bool stereoreverse = false;