New PickingVisitor for selecting Nodes from mouse clic

Cleanup Mixer and other Visitor classes.
This commit is contained in:
brunoherbelin
2020-04-19 23:11:18 +02:00
parent 8424d9a6c7
commit 0d87aa8bf6
9 changed files with 149 additions and 65 deletions

View File

@@ -27,11 +27,12 @@ Source::Source(std::string name = "") : name_("")
// default mixing nodes
groups_[View::MIXING] = new Group;
Frame *frame = new Frame;
frame->translation_.z = 0.1;
groups_[View::MIXING]->addChild(frame);
groups_[View::MIXING]->scale_ = glm::vec3(0.25f, 0.25f, 1.f);
// add source to the list
sources_.push_back(this);
sources_.push_front(this);
}
Source::~Source()