This was many changes that were largely fundamentally related. They included: - More const modifiers to enforce read only node graphs - Support for fragment and vertex shaders from the nodes - Support for node code loaded externally (embedded into the binary) - Fixed issue preventing two textures from being used in a shader - Removed several unused functions and cleaned up code - Fixed video media node misreading its matrix input
37 lines
701 B
C++
37 lines
701 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;
|
|
|
|
NodeInput* matrix_input() const;
|
|
|
|
virtual bool IsAccelerated() const override;
|
|
virtual QString CodeVertex() const override;
|
|
virtual QString CodeFragment() const override;
|
|
|
|
virtual void Retranslate() override;
|
|
|
|
protected:
|
|
|
|
private:
|
|
NodeInput* matrix_input_;
|
|
|
|
};
|
|
|
|
#endif // VIDEOINPUT_H
|