summaryrefslogtreecommitdiff
path: root/modules/sparkler/particle.c
blob: 0e3d2c8626edb67ec83055e843fee77a81f772ed (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#include "particle.h"

/* convert a particle to a new type */
void particle_convert(particles_t *particles, particle_t *p, particle_props_t *props, particle_ops_t *ops)
{
	particle_cleanup(particles, p);
	if (props) {
		*p->props = *props;
	}
	if (ops) {
		p->ops = ops;
	}
	particle_init(particles, p);
}
© All Rights Reserved