00001 /* Copyright (C) 2001 W.P. van Paassen - peter@paassen.tmfweb.nl 00002 00003 This program is free software; you can redistribute it and/or modify it under 00004 the terms of the GNU General Public License as published by the Free 00005 Software Foundation; either version 2 of the License, or (at your 00006 option) any later version. 00007 00008 This program is distributed in the hope that it will be useful, but WITHOUT 00009 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 00010 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 00011 for more details. 00012 00013 You should have received a copy of the GNU General Public License 00014 along with this program; see the file COPYING. If not, write to the Free 00015 Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ 00016 00017 #ifndef WP_SKYBOX_H 00018 #define WP_SKYBOX_H 00019 00020 #include "WP_Def.h" 00021 00022 namespace WPCG 00023 { 00024 //forward declaration 00025 class WP_Point3D; 00026 00045 class WP_SkyBox 00046 { 00047 public: 00048 WP_SkyBox(): displayID(0){}; 00049 00050 WP_SkyBox(const char* front_texture, 00051 const char* right_texture, 00052 const char* back_texture, 00053 const char* left_texture, 00054 const char* top_texture, 00055 const char* bottom_texture); 00056 00057 ~WP_SkyBox(); 00058 00059 void drawSkyBox(const WP_Point3D& p) const; 00060 00061 private: 00062 GLuint displayID; 00063 }; 00064 } 00065 #endif 00066