00001 /*************************************************************************** 00002 * resources.h 00003 * 00004 * Sun Feb 1 12:12:39 2004 00005 * Copyright 2004 thierry schartz 00006 * thierry.schartz@bluebottle.com 00007 ****************************************************************************/ 00008 /* 00009 * This program is free software; you can redistribute it and/or modify 00010 * it under the terms of the GNU General Public License as published by 00011 * the Free Software Foundation; either version 2 of the License, or 00012 * (at your option) any later version. 00013 * 00014 * This program is distributed in the hope that it will be useful, 00015 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00016 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00017 * GNU Library General Public License for more details. 00018 * 00019 * You should have received a copy of the GNU General Public License 00020 * along with this program; if not, write to the Free Software 00021 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 00022 */ 00023 00024 #ifndef RESOURCES_H 00025 #define RESOURCES_H 00026 00027 #ifdef WIN32 00028 #include <windows.h> 00029 #endif 00030 00031 00032 #include <string> 00033 #include "build.h" 00034 00035 namespace ngn { 00036 00037 00038 00039 /* \class ResourceManager 00040 * \brief Gestionnaire des chemins vers le dossier DATA où se trouvent les données ( mpas, textures, ... ). 00041 * Tous les sous-répertoires utilisés par l'application sont définis par rapport au répertoire racine "data/". 00042 */ 00043 class NGN_API ResourceManager 00044 { 00045 public: 00046 ResourceManager(); 00047 virtual ~ResourceManager(); 00048 00050 bool find( char* file ); 00052 static void setResourceDirectory( const std::string& resourceDir ); 00053 00054 // resources dirs. 00056 static std::string ResourceDir; // root data dir path 00058 static std::string ScriptDir; // scripts dir path 00060 static std::string MapDir; // maps dir path 00062 static std::string SkyScriptFile; // skybox script file path 00064 static std::string EnvMapDir; // environment map files path 00066 static std::string FontDir; // fonts dir path 00068 static std::string ShaderDir; // shaders dir path 00070 static std::string TexDir; // textures dir path 00072 static std::string ModelDir; // models dir path 00073 00074 }; 00075 00076 00077 00078 00079 00080 }//ngn 00081 #endif /* RESOURCES_H */