X-Git-Url: https://git.jsancho.org/?a=blobdiff_plain;f=Source%2FTerrain.h;h=051065617675b5e259580423a81c386c4b885cbc;hb=26debbd380c6922e5a0b60d99567c6374a4fef9a;hp=a69efbe43e14c7dd55e1abd9e3483c4f199d3540;hpb=8562aa5bebc97ea8a61d056aec3847030c6985b7;p=lugaru.git diff --git a/Source/Terrain.h b/Source/Terrain.h index a69efbe..0510656 100644 --- a/Source/Terrain.h +++ b/Source/Terrain.h @@ -1,3 +1,24 @@ +/* +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 _TERRAIN_H_ #define _TERRAIN_H_ @@ -7,6 +28,7 @@ #include "TGALoader.h" #include "Quaternions.h" #include "Quaternions.h" +#include "Texture.h" #define max_terrain_size 256 #define curr_terrain_size size @@ -37,13 +59,13 @@ class Terrain{ public: - GLuint bloodtexture; - GLuint bloodtexture2; - GLuint shadowtexture; - GLuint footprinttexture; - GLuint bodyprinttexture; - GLuint breaktexture; - GLuint terraintexture; + Texture bloodtexture; + Texture bloodtexture2; + Texture shadowtexture; + Texture footprinttexture; + Texture bodyprinttexture; + Texture breaktexture; + Texture terraintexture; short size; int patchobjectnum[subdivision][subdivision]; @@ -96,7 +118,7 @@ public: void UpdateTransparency(int whichx, int whichy); void UpdateTransparencyother(int whichx, int whichy); void UpdateTransparencyotherother(int whichx, int whichy); - bool load(char *fileName); + bool load(const char *fileName); void CalculateNormals(); void drawdecals(); void draw(int layer); @@ -110,4 +132,4 @@ public: ~Terrain(); }; -#endif \ No newline at end of file +#endif