1 //////////////////////////////////////////////////////////////////////////////// 2 // Scorched3D (c) 2000-2011 3 // 4 // This file is part of Scorched3D. 5 // 6 // Scorched3D is free software; you can redistribute it and/or modify 7 // it under the terms of the GNU General Public License as published by 8 // the Free Software Foundation; either version 2 of the License, or 9 // (at your option) any later version. 10 // 11 // Scorched3D is distributed in the hope that it will be useful, 12 // but WITHOUT ANY WARRANTY; without even the implied warranty of 13 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 // GNU General Public License for more details. 15 // 16 // You should have received a copy of the GNU General Public License along 17 // with this program; if not, write to the Free Software Foundation, Inc., 18 // 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. 19 //////////////////////////////////////////////////////////////////////////////// 20 21 #if !defined(AFX_EXPLOSIONTEXTURES_H__F2BC42E7_B2FB_4C0D_ACF0_0B91D8DC84D3__INCLUDED_) 22 #define AFX_EXPLOSIONTEXTURES_H__F2BC42E7_B2FB_4C0D_ACF0_0B91D8DC84D3__INCLUDED_ 23 24 #include <GLEXT/GLTextureSet.h> 25 #include <image/Image.h> 26 #include <common/ProgressCounter.h> 27 #include <string> 28 #include <map> 29 30 class ExplosionTextures 31 { 32 public: 33 static ExplosionTextures *instance(); 34 bool createTextures(ProgressCounter *counter = 0); 35 36 GLTexture smokeTexture; 37 GLTexture smokeTexture2; 38 GLTexture particleTexture; 39 GLTexture talkTexture; 40 GLTexture rainTexture; 41 GLTexture snowTexture; 42 GLTexture arrowTexture; 43 44 Image &getScorchBitmap(const std::string &name); 45 46 GLTextureSet *getTextureSetByName(const std::string &name); 47 std::map<std::string, GLTextureSet*> textureSets; 48 std::map<std::string, Image*> scorchedBitmaps; 49 50 protected: 51 static ExplosionTextures *instance_; 52 private: 53 ExplosionTextures(); 54 virtual ~ExplosionTextures(); 55 56 }; 57 58 #endif // !defined(AFX_EXPLOSIONTEXTURES_H__F2BC42E7_B2FB_4C0D_ACF0_0B91D8DC84D3__INCLUDED_) 59