summaryrefslogtreecommitdiff
path: root/src/rototiller.c
diff options
context:
space:
mode:
authorVito Caputo <vcaputo@pengaru.com>2019-11-14 21:35:25 -0800
committerVito Caputo <vcaputo@pengaru.com>2019-11-14 21:44:15 -0800
commitaeb6fc5986757b0186634f7106d32861dbf55c54 (patch)
tree9780f85688a6c94ea2ca5763e1bc8c433e1d997f /src/rototiller.c
parent3f260bcbcd9d29457d9dbd4f27a913c8d2e5d555 (diff)
rtv: implement "Rototiller TV" renderer
This is sort of a meta renderer, as it simply renders other modules in its prepare_frame() stage. They're still threaded as the newly public rototiller_module_render() utilizes the threading machinery, it just needs to be called from the serial phase @ prepare_frame(). I'm pretty sure this module will leak memory every time it changes modules, since the existing cleanup paths for the modules hasn't needed to be thorough in the least. So that's something to fix in a later commit, go through all the modules and make sure their destroy_context() entrypoints actually cleans everything up. See the source for some rtv-specific TODOs.
Diffstat (limited to 'src/rototiller.c')
-rw-r--r--src/rototiller.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/rototiller.c b/src/rototiller.c
index eb6a57f..51704a5 100644
--- a/src/rototiller.c
+++ b/src/rototiller.c
@@ -37,6 +37,7 @@ extern rototiller_module_t pixbounce_module;
extern rototiller_module_t plasma_module;
extern rototiller_module_t roto_module;
extern rototiller_module_t ray_module;
+extern rototiller_module_t rtv_module;
extern rototiller_module_t sparkler_module;
extern rototiller_module_t stars_module;
extern rototiller_module_t submit_module;
@@ -51,6 +52,7 @@ static const rototiller_module_t *modules[] = {
&submit_module,
&flui2d_module,
&pixbounce_module,
+ &rtv_module,
};
typedef struct rototiller_t {
© All Rights Reserved