1#include "Generators/CPUNodeEditor/Nodes/OutputNode.h"
2#include "Generators/CPUNodeEditor/CPUNodeEditor.h"
8 if (inputPins[0]->IsLinked())
9 return NodeOutput({ inputPins[0]->other->Evaluate(input)});
15 value = data[
"value"];
21 data[
"value"] = value;
22 data[
"type"] = MeshNodeEditor::MeshNodeType::Output;
26void OutputNode::OnRender()
29 inputPins[0]->Render();
31 if (!inputPins[0]->IsLinked())
33 ImGui::PushItemWidth(100);
34 ImGui::DragFloat((
"##" + std::to_string(inputPins[0]->
id)).c_str(), &value, 0.01f);
35 ImGui::PopItemWidth();
40 ImGui::Dummy(ImVec2(100, 40));
44OutputNode::OutputNode()
48 headerColor = ImColor(OUTPUT_NODE_COLOR);
50 outputPins.push_back(
new NodeEditorPin(NodeEditorPinType::Output));
a class to store JSON values