summaryrefslogtreecommitdiff
path: root/src/til_module_context.h
diff options
context:
space:
mode:
authorVito Caputo <vcaputo@pengaru.com>2022-06-09 22:40:06 -0700
committerVito Caputo <vcaputo@pengaru.com>2022-06-10 21:17:22 -0700
commitb437600c820f489049c022d2c4697226cf8d68fc (patch)
treeba115db92719bd707aa7553495278587f1474c33 /src/til_module_context.h
parent156bad78f27813934d897518f0d6ea8748be9e47 (diff)
til: add ticks to til_module_context_t
Also wire this up to the til_module_context_new() helper and all its callers. This is in preparation for modules doing more correct delta-T derived animation.
Diffstat (limited to 'src/til_module_context.h')
-rw-r--r--src/til_module_context.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/til_module_context.h b/src/til_module_context.h
index 3751b84..43d06a7 100644
--- a/src/til_module_context.h
+++ b/src/til_module_context.h
@@ -7,10 +7,11 @@ typedef struct til_module_t til_module_t;
struct til_module_context_t {
const til_module_t *module;
unsigned seed;
+ unsigned ticks;
unsigned n_cpus;
};
-void * til_module_context_new(size_t size, unsigned seed, unsigned n_cpus);
+void * til_module_context_new(size_t size, unsigned seed, unsigned ticks, unsigned n_cpus);
void * til_module_context_free(til_module_context_t *module_context);
#endif
© All Rights Reserved