created new node clip type
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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_;
|
||||
}
|
||||
@@ -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
|
||||
Reference in New Issue
Block a user