00001 #ifndef NODE_SKYBOX_H 00002 #define NODE_SKYBOX_H 00003 00004 /* 00005 00006 GLT OpenGL C++ Toolkit (LGPL) 00007 Copyright (C) 2000-2002 Nigel Stewart 00008 00009 Email: nigels.com@gmail.com 00010 WWW: http://www.nigels.com/glt/ 00011 00012 This library is free software; you can redistribute it and/or 00013 modify it under the terms of the GNU Lesser General Public 00014 License as published by the Free Software Foundation; either 00015 version 2.1 of the License, or (at your option) any later version. 00016 00017 This library is distributed in the hope that it will be useful, 00018 but WITHOUT ANY WARRANTY; without even the implied warranty of 00019 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00020 Lesser General Public License for more details. 00021 00022 You should have received a copy of the GNU Lesser General Public 00023 License along with this library; if not, write to the Free Software 00024 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 00025 00026 */ 00027 00033 #include <node/shapes.h> 00034 #include <glt/texture.h> 00035 00043 class GltSkyBox : public GltShape 00044 { 00045 public: 00047 GltSkyBox(); 00049 virtual ~GltSkyBox(); 00050 00052 virtual void draw() const; 00053 00055 void clear(); 00056 00057 // 00058 // Access textures 00059 // 00060 00062 GltTexture &positiveX(); 00064 GltTexture &negativeX(); 00066 GltTexture &positiveY(); 00068 GltTexture &negativeY(); 00070 GltTexture &positiveZ(); 00072 GltTexture &negativeZ(); 00073 00075 GLdouble &fov(); 00077 const GLdouble fov() const; 00078 00079 private: 00080 00081 GltTexture _positiveX; 00082 GltTexture _negativeX; 00083 GltTexture _positiveY; 00084 GltTexture _negativeY; 00085 GltTexture _positiveZ; 00086 GltTexture _negativeZ; 00087 00088 GLdouble _fov; 00089 }; 00090 00091 #endif