X-Git-Url: https://git.jsancho.org/?a=blobdiff_plain;f=Source%2FGlobals.cpp;h=fe9c136c58af36faf85817ed2abb606ea83c8822;hb=612415ff494c29cf2fc7ea560da9908eaff7d847;hp=d44a3dff2348505fa97e978f72156fff75345e3c;hpb=bf03ef4581fbc6d5d51e6148f2ab01dc61a29d5b;p=lugaru.git diff --git a/Source/Globals.cpp b/Source/Globals.cpp index d44a3df..fe9c136 100644 --- a/Source/Globals.cpp +++ b/Source/Globals.cpp @@ -1,3 +1,28 @@ +/* +Copyright (C) 2003, 2010 - Wolfire Games + +This file is part of Lugaru. + +Lugaru is free software; you can redistribute it and/or +modify it under the terms of the GNU General Public License +as published by the Free Software Foundation; either version 2 +of the License, or (at your option) any later version. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + +See the GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with this program; if not, write to the Free Software +Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. +*/ + +#if USE_SDL +#include "SDL.h" +#endif + #include "gamegl.h" #include "Quaternions.h" #include "Lights.h" @@ -5,22 +30,18 @@ #include "fmod.h" #include "Terrain.h" #include "Sprites.h" -//#include #include "Frustum.h" #include "Objects.h" #include "Weapons.h" #include "Person.h" #include "TGALoader.h" +#include "openal_wrapper.h" #include "Constants.h" -#if USE_SDL -#include "SDL.h" -#endif - bool visibleloading = 0; -FSOUND_SAMPLE *samp[100] = {0}; -FSOUND_STREAM * strm[20] = {0}; +OPENAL_SAMPLE *samp[100] = {0}; +OPENAL_STREAM * strm[20] = {0}; int channels[100] = {0}; float volume = 0;bool buttons[3] = {0};