merged effects into node structure

This commit is contained in:
itsmattkc
2019-04-12 21:50:52 +10:00
parent 4e4d2b1881
commit b21745f694
127 changed files with 1674 additions and 867 deletions
+5 -5
View File
@@ -1,7 +1,7 @@
#ifndef NODEGRAPH_H
#define NODEGRAPH_H
#include "effects/effect.h"
#include "nodes/node.h"
class NodeGraph
{
@@ -15,7 +15,7 @@ public:
*
* @param node
*/
void AddNode(EffectPtr node);
void AddNode(NodePtr node);
/**
* @brief Process the graph
@@ -39,15 +39,15 @@ public:
*
* The node to set as the output node. The graph takes ownership of the node and the user cannot delete it.
*/
void SetOutputNode(EffectPtr node);
void SetOutputNode(NodePtr node);
/**
* @brief Returns the currently set output node
*/
Effect* OutputNode();
Node* OutputNode();
private:
EffectPtr output_node_;
NodePtr output_node_;
};
#endif // NODEGRAPH_H