created new node clip type

This commit is contained in:
itsmattkc
2019-05-17 22:19:42 +10:00
parent 00d3a4f105
commit 3d4f12cd8e
3 changed files with 37 additions and 0 deletions
+2
View File
@@ -233,6 +233,8 @@ set(OLIVE_SOURCES
nodes/nodes/nodemedia.h
nodes/nodes/nodeshader.cpp
nodes/nodes/nodeshader.h
nodes/nodes/nodevideoclip.cpp
nodes/nodes/nodevideoclip.h
nodes/widgets/buttonwidget.cpp
nodes/widgets/buttonwidget.h
nodes/widgets/labelwidget.cpp
+16
View File
@@ -0,0 +1,16 @@
#include "nodevideoclip.h"
NodeVideoClip::NodeVideoClip(NodeGraph *parent) :
NodeBlock(parent)
{
texture_input_ = new NodeIO(this, "texture", tr("Texture"), true, false);
texture_input_->AddAcceptedNodeInput(olive::nodes::kTexture);
texture_output_ = new NodeIO(this, "texture", tr("Texture"), true, false);
texture_output_->SetOutputDataType(olive::nodes::kTexture);
}
NodeIO *NodeVideoClip::texture_output()
{
return texture_output_;
}
+19
View File
@@ -0,0 +1,19 @@
#ifndef NODEVIDEOCLIP_H
#define NODEVIDEOCLIP_H
#include "nodeblock.h"
class NodeVideoClip : public NodeBlock
{
public:
NodeVideoClip(NodeGraph* parent);
NodeIO* texture_input();
NodeIO* texture_output();
private:
NodeIO* texture_input_;
NodeIO* texture_output_;
};
#endif // NODEVIDEOCLIP_H