separated setting time and processing node functions

This commit is contained in:
itsmattkc
2019-08-27 23:38:24 +10:00
parent 35db54075d
commit b9ce02a0ec
29 changed files with 146 additions and 109 deletions
+1 -3
View File
@@ -57,11 +57,9 @@ NodeOutput *SolidGenerator::texture_output()
return texture_output_;
}
void SolidGenerator::Process(const rational &time)
void SolidGenerator::Process()
{
// FIXME: Test code
Q_UNUSED(time)
if (texture_ == nullptr) {
QImage img(1920, 1080, QImage::Format_RGBA8888_Premultiplied);
img.fill(Qt::red);
+1 -1
View File
@@ -42,7 +42,7 @@ public:
NodeOutput* texture_output();
protected:
virtual void Process(const rational &time) override;
virtual void Process() override;
private:
NodeInput* color_input_;