Importing of session.

This commit is contained in:
brunoherbelin
2020-05-23 22:40:03 +02:00
parent 614fa1247d
commit 7ac223819b
6 changed files with 133 additions and 33 deletions

View File

@@ -11,32 +11,43 @@ public:
Session();
~Session();
// add or remove sources
// add given source into the session
SourceList::iterator addSource (Source *s);
// delete the source s from the session
SourceList::iterator deleteSource (Source *s);
// get ptr to front most source and remove it from the session
// Does not delete the source
Source *popSource();
// management of list of sources
bool empty() const;
uint numSource() const;
SourceList::iterator begin ();
SourceList::iterator end ();
SourceList::iterator find (int index);
int index (SourceList::iterator it) const;
SourceList::iterator find (Source *s);
SourceList::iterator find (std::string name);
SourceList::iterator find (Node *node);
uint numSource() const;
int index (SourceList::iterator it) const;
// update all sources and return the list of source which failed
// update all sources and mark sources which failed
void update (float dt);
// return the last source which failed
Source *failedSource() { return failedSource_; }
// result of render
// get frame result of render
inline FrameBuffer *frame () const { return render_.frame(); }
// configure rendering resolution
void setResolution(glm::vec3 resolution);
// configuration for group nodes of views
inline Group *config (View::Mode m) const { return config_.at(m); }
// name of file containing this session
// name of file containing this session (for transfer)
void setFilename(const std::string &filename) { filename_ = filename; }
std::string filename() const { return filename_; }