X-Git-Url: https://git.jsancho.org/?a=blobdiff_plain;f=Source%2FGame.h;h=727b9985d3eab9d660734468e77f54e72de13707;hb=612415ff494c29cf2fc7ea560da9908eaff7d847;hp=65f6887d23b0249492e2183c91ecfff545b980e3;hpb=3072bdf1c895eb3a56c438ab5ecd2c471960b171;p=lugaru.git diff --git a/Source/Game.h b/Source/Game.h index 65f6887..727b998 100644 --- a/Source/Game.h +++ b/Source/Game.h @@ -1,6 +1,31 @@ +/* +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. +*/ + #ifndef _GAME_H_ #define _GAME_H_ +#if USE_SDL +#include "SDL.h" +#endif + #if (defined(__APPLE__) && defined(__MACH__)) # ifdef PLATFORM_MACOSX # error Do not define PLATFORM_MACOSX for new builds. It is for the old Carbonized build. @@ -17,10 +42,6 @@ #include "TGALoader.h" -#if USE_SDL -#include "SDL.h" -#endif - #if !PLATFORM_MACOSX #include "WinInput.h" #else @@ -30,11 +51,10 @@ #include "Terrain.h" #include "Skybox.h" #include "Skeleton.h" -#include "Models.h" +#include "Models.h" #include "Lights.h" #include "Person.h" #include "Constants.h" -#include "fmod.h" #include "Sprites.h" //#include #include "Text.h" @@ -47,7 +67,7 @@ extern GLuint rabbittexture; -class Game +class Game { public: @@ -220,10 +240,10 @@ public: bool oldattackkey; long long MD5_string (char *string); - static void LoadTexture(char *fileName, GLuint *textureid,int mipmap, bool hasalpha); - static void LoadTextureSave(char *fileName, GLuint *textureid,int mipmap,GLubyte *array, int *skinsize); - void LoadSave(char *fileName, GLuint *textureid,bool mipmap,GLubyte *array, int *skinsize); - bool AddClothes(char *fileName, GLuint *textureid,bool mipmap,GLubyte *array, int *skinsize); + static void LoadTexture(const char *fileName, GLuint *textureid,int mipmap, bool hasalpha); + static void LoadTextureSave(const char *fileName, GLuint *textureid,int mipmap,GLubyte *array, int *skinsize); + void LoadSave(const char *fileName, GLuint *textureid,bool mipmap,GLubyte *array, int *skinsize); + bool AddClothes(const char *fileName, GLuint *textureid,bool mipmap,GLubyte *array, int *skinsize); void InitGame(); void LoadStuff(); void LoadingScreen(); @@ -258,7 +278,7 @@ public: int musicselected; int change; Game(); - ~Game() { + ~Game() { for(int i=0;i<10;i++){ if(Mainmenuitems[i])glDeleteTextures( 1, &Mainmenuitems[i] ); }