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/XYZ.hpp"
23 #include "Objects/Weapons.hpp"
28 bool visibleloading = false;
31 bool ismotionblur = false;
32 float usermousesensitivity = 0;
33 bool floatjump = false;
34 bool cellophane = false;
35 bool autoslomo = false;
36 bool decalstoggle = 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;
70 GLubyte bloodText[512 * 512 * 3] = { 0 };
71 GLubyte wolfbloodText[512 * 512 * 3] = { 0 };
73 float camerashake = 0;
77 bool musictoggle = false;
80 bool damageeffects = false;
81 bool ambientsound = false;
82 bool mousejump = false;
84 bool winfreeze = false;
85 float flashamount = 0, flashr = 0, flashg = 0, flashb = 0;
87 float motionbluramount = 0;
88 bool stillloading = false;
89 bool showpoints = false;
90 bool showdamagebar = false;
91 bool alwaysblur = false;
92 bool immediate = false;
93 bool velocityblur = false;
96 int whichjointstartarray[26] = { 0 };
97 int whichjointendarray[26] = { 0 };
101 float slomospeed = 0;
104 bool againbonus = false;
106 float damagedealt = 0;
110 int editoractive = 0;
111 int editorpathtype = 0;
113 bool reversaltrain = false;
114 bool cananger = false;
115 bool canattack = false;
117 bool skyboxtexture = false;
121 float skyboxlightr = 0;
122 float skyboxlightg = 0;
123 float skyboxlightb = 0;
126 float hostiletime = 0;
129 float envsoundvol[30] = { 0 };
130 float envsoundlife[30] = { 0 };
133 bool devtools = false;
135 bool gamestarted = false;
137 StereoMode stereomode = stereoNone;
138 StereoMode newstereomode = stereoNone;
139 float stereoseparation = 0.05;
140 bool stereoreverse = false;