forked from mixxxdj/mixxx
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a3bac1e
commit f2c9001
Showing
39 changed files
with
287 additions
and
370 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,11 @@ | ||
#pragma once | ||
|
||
#include "backend/basenode.h" | ||
#include "rendergraph/treenode.h" | ||
#include "rendergraph/nodeinterface.h" | ||
|
||
namespace rendergraph { | ||
class Node; | ||
} // namespace rendergraph | ||
|
||
class rendergraph::Node : public rendergraph::BaseNode, public rendergraph::TreeNode { | ||
public: | ||
using rendergraph::TreeNode::appendChildNode; | ||
using rendergraph::TreeNode::firstChild; | ||
using rendergraph::TreeNode::lastChild; | ||
using rendergraph::TreeNode::nextSibling; | ||
using rendergraph::TreeNode::removeChildNode; | ||
Node(); | ||
class rendergraph::Node : public rendergraph::NodeInterface<rendergraph::BaseNode> { | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
#pragma once | ||
|
||
#include "backend/basenode.h" | ||
|
||
namespace rendergraph { | ||
|
||
template<class T_Node> | ||
class NodeInterface : public T_Node { | ||
public: | ||
void appendChildNode(std::unique_ptr<BaseNode>&& pNode) { | ||
T_Node::appendChildNode(pNode.release()); | ||
} | ||
std::unique_ptr<BaseNode> detachChildNode(BaseNode* pNode) { | ||
T_Node::removeChildNode(pNode); | ||
return std::unique_ptr<BaseNode>(pNode); | ||
} | ||
}; | ||
|
||
} // namespace rendergraph |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,11 @@ | ||
#pragma once | ||
|
||
#include "backend/baseopacitynode.h" | ||
#include "rendergraph/treenode.h" | ||
#include "rendergraph/nodeinterface.h" | ||
|
||
namespace rendergraph { | ||
class OpacityNode; | ||
} // namespace rendergraph | ||
|
||
class rendergraph::OpacityNode : public rendergraph::BaseOpacityNode, | ||
public rendergraph::TreeNode { | ||
public: | ||
using rendergraph::TreeNode::appendChildNode; | ||
using rendergraph::TreeNode::firstChild; | ||
using rendergraph::TreeNode::lastChild; | ||
using rendergraph::TreeNode::nextSibling; | ||
using rendergraph::TreeNode::removeChildNode; | ||
OpacityNode(); | ||
class rendergraph::OpacityNode : public rendergraph::NodeInterface<rendergraph::BaseOpacityNode> { | ||
}; |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.