]> git.jsancho.org Git - lugaru.git/blobdiff - Source/Skybox.cpp
Added GPL license and headers.
[lugaru.git] / Source / Skybox.cpp
index 4c466282c42f9b3fa76dec037a5ba69846288196..f80b80db0fffe26e3d160b48b38d43fcf74d2ba1 100644 (file)
@@ -1,4 +1,25 @@
-#include "skybox.h"
+/*
+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.
+*/
+
+#include "Skybox.h"
 #include "Game.h"
 
 extern float viewdistance;
@@ -347,13 +368,13 @@ SkyBox::SkyBox()
 }
 SkyBox::~SkyBox()
 {
-       if (front) glDeleteTextures( 1, (const unsigned long *)&front );
-       if (left) glDeleteTextures( 1, (const unsigned long *)&left );
-       if (back) glDeleteTextures( 1, (const unsigned long *)&back );
-       if (right) glDeleteTextures( 1, (const unsigned long *)&right );
-       if (up) glDeleteTextures( 1, (const unsigned long *)&up );
-       if (down) glDeleteTextures( 1, (const unsigned long *)&down );
-       if (cloud) glDeleteTextures( 1, (const unsigned long *)&cloud );
-       if (reflect) glDeleteTextures( 1, (const unsigned long *)&reflect );
+       if (front) glDeleteTextures( 1, &front );
+       if (left) glDeleteTextures( 1, &left );
+       if (back) glDeleteTextures( 1, &back );
+       if (right) glDeleteTextures( 1, &right );
+       if (up) glDeleteTextures( 1, &up );
+       if (down) glDeleteTextures( 1, &down );
+       if (cloud) glDeleteTextures( 1, &cloud );
+       if (reflect) glDeleteTextures( 1, &reflect );
 };