#include <ExplosionTextures.h>
Public Member Functions | |
| bool | createTextures (ProgressCounter *counter=0) |
| Image & | getScorchBitmap (const char *name) |
| GLTextureSet * | getTextureSetByName (const char *name) |
Static Public Member Functions | |
| static ExplosionTextures * | instance () |
Public Attributes | |
| GLTexture | smokeTexture |
| GLTexture | smokeTexture2 |
| GLTexture | particleTexture |
| GLTexture | talkTexture |
| GLTexture | rainTexture |
| GLTexture | snowTexture |
| std::map < std::string, GLTextureSet * > | textureSets |
| std::map < std::string, Image * > | scorchedBitmaps |
Protected Member Functions | |
| bool | addTextureToSet (GLTextureSet &set, const char *texPath) |
Static Protected Attributes | |
| static ExplosionTextures * | instance_ = 0 |
Private Member Functions | |
| ExplosionTextures () | |
| virtual | ~ExplosionTextures () |
Definition at line 30 of file ExplosionTextures.h.
| ExplosionTextures::ExplosionTextures | ( | ) | [private] |
Definition at line 41 of file ExplosionTextures.cpp.
| ExplosionTextures::~ExplosionTextures | ( | ) | [private, virtual] |
Definition at line 46 of file ExplosionTextures.cpp.
| ExplosionTextures * ExplosionTextures::instance | ( | ) | [static] |
Definition at line 31 of file ExplosionTextures.cpp.
References instance_.
Referenced by ParticleEmitter::emitExplosionRing(), ParticleEmitter::emitLinear(), ParticleEmitter::emitMushroom(), ParticleEmitter::emitPrecipitation(), ParticleEmitter::emitSmoke(), ParticleEmitter::emitTalk(), Napalm::init(), Explosion::init(), ClientInitializeHandler::initialize(), Explosion::simulate(), TeleportRenderer::simulate(), and Napalm::simulateAddEdge().
| bool ExplosionTextures::createTextures | ( | ProgressCounter * | counter = 0 |
) |
Definition at line 64 of file ExplosionTextures.cpp.
References addTextureToSet(), GLTexture::create(), DIALOG_ASSERT, S3D::dialogMessage(), file, S3D::formatStringBuffer(), XMLNode::getChildren(), XMLNode::getContent(), S3D::getDataFile(), XMLNode::getName(), XMLNode::getNamedParameter(), LANG_RESOURCE, ImageFactory::loadAlphaImageHandle(), ImageFactory::loadImageHandle(), particleTexture, rainTexture, ProgressCounter::setNewOp(), smokeTexture, smokeTexture2, snowTexture, LangStringUtil::strcmp(), talkTexture, textureSets, and GLTexture::textureValid().
| Image & ExplosionTextures::getScorchBitmap | ( | const char * | name | ) |
Definition at line 184 of file ExplosionTextures.cpp.
References S3D::fileExists(), S3D::getDataFile(), Landscape::getScorchMap(), Landscape::instance(), ImageFactory::loadImage(), and scorchedBitmaps.
Referenced by Explosion::simulate().
| GLTextureSet * ExplosionTextures::getTextureSetByName | ( | const char * | name | ) |
Definition at line 170 of file ExplosionTextures.cpp.
References DIALOG_ASSERT, and textureSets.
Referenced by Napalm::init(), Explosion::init(), and TeleportRenderer::simulate().
| bool ExplosionTextures::addTextureToSet | ( | GLTextureSet & | set, | |
| const char * | texPath | |||
| ) | [protected] |
Definition at line 51 of file ExplosionTextures.cpp.
References GLTexture::create(), and ImageFactory::loadImageHandle().
Referenced by createTextures().
Definition at line 36 of file ExplosionTextures.h.
Referenced by createTextures(), ParticleEmitter::emitMushroom(), and ParticleEmitter::emitSmoke().
Definition at line 38 of file ExplosionTextures.h.
Referenced by createTextures(), ParticleEmitter::emitExplosionRing(), and ParticleEmitter::emitLinear().
Definition at line 39 of file ExplosionTextures.h.
Referenced by createTextures(), and ParticleEmitter::emitTalk().
Definition at line 40 of file ExplosionTextures.h.
Referenced by createTextures(), and ParticleEmitter::emitPrecipitation().
Definition at line 41 of file ExplosionTextures.h.
Referenced by createTextures(), and ParticleEmitter::emitPrecipitation().
| std::map<std::string, GLTextureSet*> ExplosionTextures::textureSets |
Definition at line 46 of file ExplosionTextures.h.
Referenced by createTextures(), and getTextureSetByName().
| std::map<std::string, Image*> ExplosionTextures::scorchedBitmaps |
ExplosionTextures * ExplosionTextures::instance_ = 0 [static, protected] |
1.5.3