//------------------------------------------------------------------------------ void ParticleSystem::setMaxParticles(u32 max) { if(m_maxParticles != max) { if(max == 0) { m_particles.clear(); m_vertices.clear(); } else { // TODO wait until enough particles fade m_particles.resize(max); m_vertices.resize(4*max); if(max > m_maxParticles) { updateUVs(m_maxParticles); } } m_maxParticles = max; } }
void Obj::setTileNumber(int _iTileNumber) { m_iTileNumber = _iTileNumber; updateUVs(); }
void Obj::setFlip(Flip _eFlip) { m_eFlip = _eFlip; updateUVs(); }
void Obj::setObjSize(ObjSize _eObjSize) { m_eObjSize = _eObjSize; updateUVs(); }