|
WoW Model Viewer
Your premiere tool for viewing, equipping and animating World of Warcraft models.
|
M2 particle system — manages emission, simulation, and rendering of particles. More...
#include <particle.h>
Public Types | |
| typedef std::vector< glm::vec4 > | particleColorSet |
Public Member Functions | |
| ParticleSystem () | |
| ~ParticleSystem () | |
| void | init (GameFile *f, M2ParticleDef &mta, std::vector< uint32 > &globals) |
| void | update (float dt) |
| void | setup (size_t anim, size_t time) |
| void | draw () |
Static Public Member Functions | |
| static void | useDoNotTrailInfo () |
Public Attributes | |
| int | blend |
| WoWModel * | model |
| float | tofs |
| Animated< uint16 > | enabled |
| Animated< float > | speed |
| Animated< float > | variation |
| Animated< float > | spread |
| Animated< float > | lat |
| Animated< float > | gravity |
| Animated< float > | lifespan |
| Animated< float > | rate |
| Animated< float > | areal |
| Animated< float > | areaw |
| glm::vec4 | colors [3] |
| float | sizes [3] |
| bool | multitexture |
| bool | doNotTrail |
| int | particleColID |
| bool | replaceParticleColors |
| std::vector< particleColorSet > | particleColorReplacements |
Static Public Attributes | |
| static bool | useDoNotTrail = false |
Private Member Functions | |
| void | initTile (glm::vec2 *tc, int num) |
Private Attributes | |
| float | mid |
| float | slowdown |
| float | rotation |
| glm::vec3 | pos |
| glm::vec3 | tpos |
| GLuint | texture |
| GLuint | texture2 |
| GLuint | texture3 |
| ParticleEmitter * | emitter |
| ParticleList | particles |
| int | order |
| int | ParticleType |
| size_t | manim |
| size_t | mtime |
| int | rows |
| int | cols |
| std::vector< TexCoordSet > | tiles |
| bool | billboard |
| float | rem |
| int32 | flags |
| int16 | EmitterType |
| Bone * | parent |
Friends | |
| class | PlaneParticleEmitter |
| class | SphereParticleEmitter |
| std::ostream & | operator<< (std::ostream &out, const ParticleSystem &v) |
M2 particle system — manages emission, simulation, and rendering of particles.
Definition at line 76 of file particle.h.
| typedef std::vector<glm::vec4> ParticleSystem::particleColorSet |
Definition at line 110 of file particle.h.
|
inline |
Definition at line 115 of file particle.h.
|
inline |
Definition at line 134 of file particle.h.
| void ParticleSystem::draw | ( | ) |
Definition at line 289 of file particle.cpp.
| void ParticleSystem::init | ( | GameFile * | f, |
| M2ParticleDef & | mta, | ||
| std::vector< uint32 > & | globals | ||
| ) |
|
private |
| void ParticleSystem::setup | ( | size_t | anim, |
| size_t | time | ||
| ) |
Definition at line 269 of file particle.cpp.
| void ParticleSystem::update | ( | float | dt | ) |
|
inlinestatic |
Definition at line 177 of file particle.h.
|
friend |
Definition at line 146 of file particle.h.
|
friend |
Definition at line 142 of file particle.h.
|
friend |
Definition at line 143 of file particle.h.
| Animated<float> ParticleSystem::areal |
Definition at line 101 of file particle.h.
| Animated<float> ParticleSystem::areaw |
Definition at line 101 of file particle.h.
|
private |
Definition at line 88 of file particle.h.
| int ParticleSystem::blend |
Definition at line 97 of file particle.h.
| glm::vec4 ParticleSystem::colors[3] |
Definition at line 103 of file particle.h.
|
private |
Definition at line 85 of file particle.h.
| bool ParticleSystem::doNotTrail |
Definition at line 105 of file particle.h.
|
private |
Definition at line 81 of file particle.h.
|
private |
Definition at line 93 of file particle.h.
Definition at line 100 of file particle.h.
|
private |
Definition at line 92 of file particle.h.
| Animated<float> ParticleSystem::gravity |
Definition at line 101 of file particle.h.
| Animated<float> ParticleSystem::lat |
Definition at line 101 of file particle.h.
| Animated<float> ParticleSystem::lifespan |
Definition at line 101 of file particle.h.
|
private |
Definition at line 84 of file particle.h.
|
private |
Definition at line 78 of file particle.h.
| WoWModel* ParticleSystem::model |
Definition at line 98 of file particle.h.
|
private |
Definition at line 84 of file particle.h.
| bool ParticleSystem::multitexture |
Definition at line 105 of file particle.h.
|
private |
Definition at line 83 of file particle.h.
|
private |
Definition at line 94 of file particle.h.
| int ParticleSystem::particleColID |
Definition at line 106 of file particle.h.
| std::vector<particleColorSet> ParticleSystem::particleColorReplacements |
Definition at line 113 of file particle.h.
|
private |
Definition at line 82 of file particle.h.
|
private |
Definition at line 83 of file particle.h.
|
private |
Definition at line 79 of file particle.h.
| Animated<float> ParticleSystem::rate |
Definition at line 101 of file particle.h.
|
private |
Definition at line 89 of file particle.h.
| bool ParticleSystem::replaceParticleColors |
Definition at line 107 of file particle.h.
|
private |
Definition at line 78 of file particle.h.
|
private |
Definition at line 85 of file particle.h.
| float ParticleSystem::sizes[3] |
Definition at line 104 of file particle.h.
|
private |
Definition at line 78 of file particle.h.
| Animated<float> ParticleSystem::speed |
Definition at line 101 of file particle.h.
| Animated<float> ParticleSystem::spread |
Definition at line 101 of file particle.h.
|
private |
Definition at line 80 of file particle.h.
|
private |
Definition at line 80 of file particle.h.
|
private |
Definition at line 80 of file particle.h.
|
private |
Definition at line 86 of file particle.h.
| float ParticleSystem::tofs |
Definition at line 99 of file particle.h.
|
private |
Definition at line 79 of file particle.h.
|
static |
Definition at line 182 of file particle.h.
| Animated<float> ParticleSystem::variation |
Definition at line 101 of file particle.h.