2 #include <Gfx/GfxContext.hpp>
3 #include <Gfx/GfxExecContext.hpp>
5 #include <ossia/gfx/texture_parameter.hpp>
6 #include <ossia/network/base/device.hpp>
7 #include <ossia/network/base/parameter.hpp>
8 #include <ossia/network/base/protocol.hpp>
23 : texture_parameter{n}
27 node_id = context->ui->register_node(std::unique_ptr<score::gfx::Node>{node});
30 void push_texture(port_index idx)
32 port_index source = idx;
33 port_index sink = port_index{this->node_id, 0};
34 context->setEdge(source, sink);
44 : protocol_base{flags{}}
49 bool pull(ossia::net::parameter_base&)
override {
return false; }
50 bool push(
const ossia::net::parameter_base&,
const ossia::value& v)
override
54 bool push_raw(
const ossia::net::full_parameter_data&)
override {
return false; }
55 bool observe(ossia::net::parameter_base&,
bool)
override {
return false; }
56 bool update(ossia::net::node_base& node_base)
override {
return false; }
61 ossia::net::device_base& m_device;
63 std::unique_ptr<gfx_parameter_base> m_parameter;
70 , m_parameter{std::make_unique<gfx_parameter_base>(*
this, gfxmodel, proto.context)}
72 m_name = std::move(name);
78 ossia::net::device_base& get_device()
const override {
return m_device; }
79 ossia::net::node_base* get_parent()
const override {
return m_parent; }
80 ossia::net::node_base& set_name(std::string)
override {
return *
this; }
81 ossia::net::parameter_base* create_parameter(ossia::val_type)
override
83 return m_parameter.get();
85 bool remove_parameter()
override {
return false; }
87 std::unique_ptr<ossia::net::node_base> make_child(
const std::string& name)
override
91 void removing_child(ossia::net::node_base& node_base)
override { }
Definition: GfxExecContext.hpp:16
Definition: GfxParameter.hpp:60
Definition: GfxParameter.hpp:13
Definition: GfxParameter.hpp:41
Root data model for visual nodes.
Definition: score-plugin-gfx/Gfx/Graph/Node.hpp:60
Binds the rendering pipeline to ossia processes.
Definition: CameraDevice.cpp:28