If Nodes only have the one output, we don't need to do so much differentiation between them. Previous iteration used outputs as like a distinct function within a Node (e.g. length output would return one result, buffer output would produce a different result - each run different code to produce their results). Now in this iteration, it's more accurate to say a Node is just one function (which seems more appropriate for a node system anyway).
37 lines
694 B
C++
37 lines
694 B
C++
#ifndef VIDEOINPUT_H
|
|
#define VIDEOINPUT_H
|
|
|
|
#include <QOpenGLTexture>
|
|
|
|
#include "../media.h"
|
|
#include "render/colormanager.h"
|
|
|
|
class VideoInput : public MediaInput
|
|
{
|
|
public:
|
|
VideoInput();
|
|
|
|
virtual Node* copy() const override;
|
|
|
|
virtual QString Name() const override;
|
|
virtual QString id() const override;
|
|
virtual QString Category() const override;
|
|
virtual QString Description() const override;
|
|
|
|
virtual void Release() override;
|
|
|
|
NodeInput* matrix_input() const;
|
|
|
|
virtual QString Code() const override;
|
|
|
|
//virtual void Hash(QCryptographicHash *hash, NodeOutput* from, const rational &time) override;
|
|
|
|
protected:
|
|
|
|
private:
|
|
NodeInput* matrix_input_;
|
|
|
|
};
|
|
|
|
#endif // VIDEOINPUT_H
|