From aeb6fc5986757b0186634f7106d32861dbf55c54 Mon Sep 17 00:00:00 2001 From: Vito Caputo Date: Thu, 14 Nov 2019 21:35:25 -0800 Subject: 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. --- src/rototiller.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/rototiller.c') 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 { -- cgit v1.2.1