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/>.
25 #include "Graphic/Stereo.h"
26 #include "Math/Quaternions.h"
27 #include "Objects/Weapons.h"
29 bool visibleloading = 0;
32 bool ismotionblur = false;
33 float usermousesensitivity = 0;
34 bool floatjump = false;
35 bool cellophane = false;
36 bool autoslomo = false;
38 bool invertmouse = false;
39 bool texttoggle = false;
41 float targetblurness = 0;
43 float precipdelay = 0;
45 float oldgamespeed = 0;
48 float realmultiplier = 0;
49 float screenwidth = 0, screenheight = 0;
51 float viewdistance = 0;
61 SDL_Window *sdlwindow;
67 float realtexdetail = 0;
72 GLubyte bloodText[512 * 512 * 3] = {0};
73 GLubyte wolfbloodText[512 * 512 * 3] = {0};
75 float camerashake = 0;
79 bool musictoggle = false;
82 bool damageeffects = false;
83 bool ambientsound = false;
84 bool mousejump = false;
86 bool winfreeze = false;
87 float flashamount = 0, flashr = 0, flashg = 0, flashb = 0;
89 float motionbluramount = 0;
90 bool stillloading = false;
91 bool showpoints = false;
92 bool showdamagebar = false;
93 bool alwaysblur = false;
94 bool immediate = false;
95 bool velocityblur = false;
98 int whichjointstartarray[26] = {0};
99 int whichjointendarray[26] = {0};
103 float slomospeed = 0;
106 int tutoriallevel = 0;
107 int tutorialstage = 0;
108 float tutorialstagetime = 0;
109 float tutorialmaxtime = 0;
110 float tutorialsuccess = 0;
112 bool againbonus = false;
114 float damagedealt = 0;
118 int editoractive = 0;
119 int editorpathtype = 0;
121 bool reversaltrain = false;
122 bool cananger = false;
123 bool canattack = false;
125 bool skyboxtexture = false;
129 float skyboxlightr = 0;
130 float skyboxlightg = 0;
131 float skyboxlightb = 0;
134 float hostiletime = 0;
137 float envsoundvol[30] = {0};
138 float envsoundlife[30] = {0};
141 bool devtools = false;
143 bool gamestarted = false;
145 StereoMode stereomode = stereoNone;
146 StereoMode newstereomode = stereoNone;
147 float stereoseparation = 0.05;
148 bool stereoreverse = false;