mirror of https://github.com/axmolengine/axmol.git
Add ability to clear emission shapes.
This commit is contained in:
parent
2ccd401555
commit
fcbd50daa8
|
@ -1119,6 +1119,11 @@ void ParticleSystem::setAnimationDescriptor(unsigned short indexOfDescriptor,
|
|||
desc.reverseIndices = reverse;
|
||||
}
|
||||
|
||||
void ParticleSystem::resetEmissionShapes()
|
||||
{
|
||||
_emissionShapes.clear();
|
||||
}
|
||||
|
||||
void ParticleSystem::addEmissionShapePoint(Vec2 pos)
|
||||
{
|
||||
EmissionShape shape{};
|
||||
|
|
|
@ -1133,6 +1133,9 @@ public:
|
|||
void setEmissionShapes(bool enabled) { _isEmissionShapes = enabled; }
|
||||
bool isEmissionShapes() { return _isEmissionShapes; }
|
||||
|
||||
/** Resets the count of emission shapes to 0 and empties the emission shapes array */
|
||||
void resetEmissionShapes();
|
||||
|
||||
/** Adds an emission shape of type point to the system. */
|
||||
void addEmissionShapePoint(Vec2 pos);
|
||||
|
||||
|
|
Loading…
Reference in New Issue