Since the nodes won't be holding any rendering data themselves in this system, we may as well enforce some level of non-write access by setting all the functions to const. They were already const-friendly, they just weren't labelled as such.
41 lines
783 B
C++
41 lines
783 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;
|
|
|
|
NodeOutput* texture_output() const;
|
|
|
|
virtual QString Code(NodeOutput* output) const override;
|
|
|
|
//virtual void Hash(QCryptographicHash *hash, NodeOutput* from, const rational &time) override;
|
|
|
|
protected:
|
|
|
|
private:
|
|
NodeInput* matrix_input_;
|
|
|
|
NodeOutput* texture_output_;
|
|
|
|
};
|
|
|
|
#endif // VIDEOINPUT_H
|