//------------------------------------------------------------------------------
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;
	}
}
Example #2
0
void Obj::setTileNumber(int _iTileNumber)
{
	m_iTileNumber	= _iTileNumber;

	updateUVs();
}
Example #3
0
void Obj::setFlip(Flip _eFlip)
{
	m_eFlip	= _eFlip;

	updateUVs();
}
Example #4
0
void Obj::setObjSize(ObjSize _eObjSize)
{
	m_eObjSize	= _eObjSize;

	updateUVs();
}