]> git.jsancho.org Git - lugaru.git/blobdiff - Source/Terrain.h
some findClosest* refactoring
[lugaru.git] / Source / Terrain.h
index a69efbe43e14c7dd55e1abd9e3483c4f199d3540..051065617675b5e259580423a81c386c4b885cbc 100644 (file)
@@ -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
 
 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