mirror of
https://github.com/brunoherbelin/vimix.git
synced 2025-12-11 10:19:59 +01:00
Early implementation of groups: SessionGroupSource.
Rename SessionSource to SessionFileSource.
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user