mathnode: expanded math node

Implemented handling of various different types.
This commit is contained in:
itsmattkc
2020-04-01 05:21:50 +11:00
parent 74e36bc99d
commit 1363d2b94c
11 changed files with 359 additions and 72 deletions
+4 -4
View File
@@ -477,12 +477,12 @@ NodeInput *Node::ShaderIterativeInput() const
return nullptr;
}
NodeInput* Node::ProcessesSamplesFrom() const
NodeInput* Node::ProcessesSamplesFrom(const NodeValueDatabase &value) const
{
return nullptr;
}
void Node::ProcessSamples(const NodeValueDatabase*, const AudioRenderingParams&, const SampleBufferPtr, SampleBufferPtr, int) const
void Node::ProcessSamples(const NodeValueDatabase &, const AudioRenderingParams&, const SampleBufferPtr, SampleBufferPtr, int) const
{
}
@@ -614,7 +614,7 @@ NodeOutput *Node::output() const
return output_;
}
NodeValue Node::InputValueFromTable(NodeInput *input, const NodeValueTable &table) const
NodeValue Node::InputValueFromTable(NodeInput *input, const NodeValueDatabase &db) const
{
NodeParam::DataType find_data_type = input->data_type();
@@ -624,7 +624,7 @@ NodeValue Node::InputValueFromTable(NodeInput *input, const NodeValueTable &tabl
}
// Try to get a value from it
return table.GetWithMeta(find_data_type);
return db[input].GetWithMeta(find_data_type);
}
const QPointF &Node::GetPosition()