diff options
author | Vito Caputo <vcaputo@pengaru.com> | 2023-06-12 15:22:59 -0700 |
---|---|---|
committer | Vito Caputo <vcaputo@pengaru.com> | 2023-06-12 17:02:58 -0700 |
commit | a56b2c248356ec505f38b88651f26f92c00de981 (patch) | |
tree | 1f3b87f93de1b8ad38079db96a5401ac47f63418 /README | |
parent | 8b0c8e1e4336ce0c40c467fc86dec40fb2c94128 (diff) |
til: introduce "ref" built-in module
This opens up the possibility of referencing contexts on-stream
by-path anywhere a module may be used:
ref,path=/path/to/existing/context
Currently the path lookup is performed @ render time, and a
reference is taken on the context found there on the first time
it's located. That reference is then held in the ref's context
until its context is destroyed.
There are more details to flesh out, and what probably needs to
happen is some til_stream API for maintaining the reference in
the event that the context at that path gets replaced. Due to
refcounting, the referenced context will persist even if the
stream-resident instance goes away, but there should probably be
a way for that replacement to invalidate the existing references
so they replace theirs with a fresh lookup at the path...
Either way this is a good start. With this addition you can
effectively implement scene transitions in rkt, via the mixer
module, something like (sans proper escaping):
mixer,a_module=ref\,path=/foo/previous/ctxt,b_module=ref\,path=/foo/next/ctxt
Diffstat (limited to 'README')
0 files changed, 0 insertions, 0 deletions