summaryrefslogtreecommitdiff
path: root/src/modules/sparkler/particles.c
diff options
context:
space:
mode:
authorVito Caputo <vcaputo@pengaru.com>2020-03-29 18:44:08 -0700
committerVito Caputo <vcaputo@pengaru.com>2020-09-11 01:05:40 -0700
commite34d928d56debcb6dbdc4f16335ece59209b5e27 (patch)
tree6aad462dc06b02933dba441abc92cd0dd3c29cd2 /src/modules/sparkler/particles.c
parent521da365b17aaf861af33bcc3c79ffedf1a77cf0 (diff)
modules/sparkler: add particles conf parameter
Just stubbed out for now, wanting to restore some octree overlays like the old standalone sparkler had. Those can be wired up to settings so rtv can occasionally show the spatial partition and matched particles.
Diffstat (limited to 'src/modules/sparkler/particles.c')
-rw-r--r--src/modules/sparkler/particles.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/modules/sparkler/particles.c b/src/modules/sparkler/particles.c
index 8ebb61d..b43c57b 100644
--- a/src/modules/sparkler/particles.c
+++ b/src/modules/sparkler/particles.c
@@ -40,11 +40,12 @@ struct particles_t {
chunker_t *chunker; /* chunker for variably-sized particle allocation (includes context) */
list_head_t active; /* top-level active list of particles heirarchy */
bsp_t *bsp; /* bsp spatial index of the particles */
+ particles_conf_t conf;
};
/* create a new particle system */
-particles_t * particles_new(void)
+particles_t * particles_new(const particles_conf_t *conf)
{
particles_t *particles;
@@ -65,6 +66,9 @@ particles_t * particles_new(void)
INIT_LIST_HEAD(&particles->active);
+ if (conf)
+ particles->conf = *conf;
+
return particles;
}
© All Rights Reserved