00001 /*************************************************************************** 00002 * Copyright (C) 2007 by * 00003 * Pierre-yves JEZEQUEL, Julien MICHOT, Loic MOISAN, * 00004 * Julien PAPILLON, Sebastien PINEAUD, Barthelemy SERRES * 00005 * * 00006 * https://sourceforge.net/projects/anidam * 00007 * * 00008 * This program is free software; you can redistribute it and/or modify * 00009 * it under the terms of the GNU General Public License as published by * 00010 * the Free Software Foundation; either version 2 of the License, or * 00011 * (at your option) any later version. * 00012 * * 00013 * This program is distributed in the hope that it will be useful, * 00014 * but WITHOUT ANY WARRANTY; without even the implied warranty of * 00015 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * 00016 * GNU General Public License for more details. * 00017 * * 00018 * You should have received a copy of the GNU General Public License * 00019 * along with this program; if not, write to the * 00020 * Free Software Foundation, Inc., * 00021 * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * 00022 ***************************************************************************/ 00023 #include <osg/Vec3> 00024 #include <osg/Vec4> 00025 #include <osg/Quat> 00026 #include <osg/Matrix> 00027 #include <osg/ShapeDrawable> 00028 #include <osg/Geometry> 00029 #include <osg/Geode> 00030 #include <osg/Transform> 00031 #include <osg/Material> 00032 #include <osg/NodeCallback> 00033 #include <osg/Depth> 00034 #include <osg/CullFace> 00035 #include <osg/TexMat> 00036 #include <osg/TexGen> 00037 #include <osg/TexEnv> 00038 #include <osg/TexEnvCombine> 00039 #include <osg/TextureCubeMap> 00040 #include <osg/VertexProgram> 00041 00042 00043 #include <osgDB/Registry> 00044 #include <osgDB/ReadFile> 00045 00046 #include <osgUtil/SmoothingVisitor> 00047 #include <osgUtil/Optimizer> 00048 #include <osgUtil/CullVisitor> 00049 00050 class SkyBox{ 00051 00052 public: 00053 SkyBox(); 00054 ~SkyBox(); 00055 osg::Node* createSkyBox(); 00056 00057 private: 00058 osg::TextureCubeMap* readCubeMap(); 00059 00060 };