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/>.
21 #include "Graphic/Stereo.hpp"
22 #include "Math/Quaternions.hpp"
23 #include "Objects/Weapons.hpp"
28 bool visibleloading = 0;
31 bool ismotionblur = false;
32 float usermousesensitivity = 0;
33 bool floatjump = false;
34 bool cellophane = false;
35 bool autoslomo = false;
37 bool invertmouse = false;
38 bool texttoggle = false;
40 float targetblurness = 0;
42 float precipdelay = 0;
44 float oldgamespeed = 0;
47 float realmultiplier = 0;
48 float screenwidth = 0, screenheight = 0;
50 float viewdistance = 0;
60 SDL_Window *sdlwindow;
66 float realtexdetail = 0;
71 GLubyte bloodText[512 * 512 * 3] = {0};
72 GLubyte wolfbloodText[512 * 512 * 3] = {0};
74 float camerashake = 0;
78 bool musictoggle = false;
81 bool damageeffects = false;
82 bool ambientsound = false;
83 bool mousejump = false;
85 bool winfreeze = false;
86 float flashamount = 0, flashr = 0, flashg = 0, flashb = 0;
88 float motionbluramount = 0;
89 bool stillloading = false;
90 bool showpoints = false;
91 bool showdamagebar = false;
92 bool alwaysblur = false;
93 bool immediate = false;
94 bool velocityblur = false;
97 int whichjointstartarray[26] = {0};
98 int whichjointendarray[26] = {0};
102 float slomospeed = 0;
105 int tutoriallevel = 0;
106 int tutorialstage = 0;
107 float tutorialstagetime = 0;
108 float tutorialmaxtime = 0;
109 float tutorialsuccess = 0;
111 bool againbonus = false;
113 float damagedealt = 0;
117 int editoractive = 0;
118 int editorpathtype = 0;
120 bool reversaltrain = false;
121 bool cananger = false;
122 bool canattack = false;
124 bool skyboxtexture = false;
128 float skyboxlightr = 0;
129 float skyboxlightg = 0;
130 float skyboxlightb = 0;
133 float hostiletime = 0;
136 float envsoundvol[30] = {0};
137 float envsoundlife[30] = {0};
140 bool devtools = false;
142 bool gamestarted = false;
144 StereoMode stereomode = stereoNone;
145 StereoMode newstereomode = stereoNone;
146 float stereoseparation = 0.05;
147 bool stereoreverse = false;