BugFix Update linked sources and Texture view on Source change

When source change stream (e.g. change pattern), Texture view was not updated, and sources with mask texture were not adapted.
This commit is contained in:
Bruno Herbelin
2024-01-02 10:38:37 +01:00
parent b599fbf88d
commit 8924d81e0a
5 changed files with 90 additions and 62 deletions

View File

@@ -72,19 +72,18 @@ public:
// management of list of sources
bool empty() const;
uint size() const;
SourceList getDepthSortedList () const;
SourceIdList getIdList() const;
std::list<std::string> getNameList(uint64_t exceptid=0) const;
SourceList::iterator begin ();
SourceList::iterator end ();
SourceList::iterator find (Source *s);
SourceList::iterator find (std::string name);
SourceList::iterator find (Node *node);
SourceList::iterator find (float depth_from, float depth_to);
SourceList getDepthSortedList () const;
SourceList::iterator find (uint64_t id);
SourceIdList getIdList() const;
std::list<std::string> getNameList(uint64_t exceptid=0) const;
// manage sources by #id (ordered index)
SourceList::iterator at (int index);
int index (SourceList::iterator it) const;
void move (int current_index, int target_index);
@@ -97,6 +96,8 @@ public:
void update (float dt);
uint64_t runtime() const;
void execute(void (*func)(Source *));
// update mode (active or not)
void setActive (bool on);
inline bool active () { return active_; }