1#include <Dataflow/Rendering/Renderer/RenderingGraph.hpp>
3#include <Engine/Rendering/RenderObject.hpp>
4#include <Engine/Rendering/RenderTechnique.hpp>
12using namespace Ra::Dataflow::Rendering::Nodes;
13using namespace Ra::Dataflow::Core;
15void RenderingGraph::init() {
19bool RenderingGraph::add_node(
Node* newNode ) {
27bool RenderingGraph::remove_node(
Node* node ) {
87 m_outputTextures = graphOutput;
104 return m_outputTextures;
107void RenderingGraph::clear_nodes() {
109 m_renderingNodes.clear();
110 m_rtIndexedNodes.clear();
115 for (
const auto& rn : m_rtIndexedNodes ) {
116 rn->buildRenderTechnique( ro, *rt );
119 ro->setRenderTechnique( rt );
virtual bool add_node(std::shared_ptr< Node > newNode)
Adds a node to the graph.
virtual void clear_nodes()
Deletes all nodes from the render graph.
std::shared_ptr< Node > node(const std::string &instanceNameNode) const
virtual bool remove_node(std::shared_ptr< Node > node)
Removes a node from the graph.
void init() override
Initializes the node content.
Base abstract class for all the nodes added and used by the node system.
hepler function to manage enum as underlying types in VariableSet