Early implementation of groups: SessionGroupSource.

Rename SessionSource to SessionFileSource.
This commit is contained in:
Bruno
2021-02-07 22:01:07 +01:00
parent 65564065d9
commit 84416f566b
16 changed files with 468 additions and 160 deletions

View File

@@ -196,9 +196,9 @@ Source *Session::popSource()
return s;
}
void Session::setResolution(glm::vec3 resolution)
void Session::setResolution(glm::vec3 resolution, bool useAlpha)
{
render_.setResolution(resolution);
render_.setResolution( resolution, useAlpha );
config_[View::RENDERING]->scale_ = resolution;
}
@@ -240,6 +240,11 @@ SourceList::iterator Session::find(Node *node)
return std::find_if(sources_.begin(), sources_.end(), Source::hasNode(node));
}
SourceList::iterator Session::find(float depth_from, float depth_to)
{
return std::find_if(sources_.begin(), sources_.end(), Source::hasDepth(depth_from, depth_to));
}
uint Session::numSource() const
{
return sources_.size();