Added delay and image selection to CloneSource

This commit is contained in:
Bruno Herbelin
2022-01-15 00:15:52 +01:00
parent 3678e8fb27
commit e58041227b
8 changed files with 211 additions and 26 deletions

View File

@@ -649,6 +649,17 @@ void Source::call(SourceCallback *callback, bool override)
}
}
CloneSource *Source::clone(uint64_t id)
{
CloneSource *s = new CloneSource(this, id);
clones_.push_back(s);
return s;
}
void Source::update(float dt)
{
// keep delta-t