ported crossdissolve to external shader
This commit is contained in:
@@ -1,22 +0,0 @@
|
||||
# Olive - Non-Linear Video Editor
|
||||
# Copyright (C) 2019 Olive Team
|
||||
#
|
||||
# This program is free software: you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
# the Free Software Foundation, either version 3 of the License, or
|
||||
# (at your option) any later version.
|
||||
#
|
||||
# This program is distributed in the hope that it will be useful,
|
||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
# GNU General Public License for more details.
|
||||
#
|
||||
# You should have received a copy of the GNU General Public License
|
||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
set(OLIVE_SOURCES
|
||||
${OLIVE_SOURCES}
|
||||
node/block/transition/crossdissolve/crossdissolve.h
|
||||
node/block/transition/crossdissolve/crossdissolve.cpp
|
||||
PARENT_SCOPE
|
||||
)
|
||||
@@ -1,35 +0,0 @@
|
||||
#include "crossdissolve.h"
|
||||
|
||||
Node *CrossDissolveTransition::copy() const
|
||||
{
|
||||
CrossDissolveTransition* c = new CrossDissolveTransition();
|
||||
|
||||
CopyParameters(this, c);
|
||||
|
||||
return c;
|
||||
}
|
||||
|
||||
QString CrossDissolveTransition::Name() const
|
||||
{
|
||||
return tr("Cross Dissolve");
|
||||
}
|
||||
|
||||
QString CrossDissolveTransition::id() const
|
||||
{
|
||||
return "org.olivevideoeditor.Olive.crossdissolve";
|
||||
}
|
||||
|
||||
QString CrossDissolveTransition::Description() const
|
||||
{
|
||||
return tr("A smooth fade transition from one video clip to another.");
|
||||
}
|
||||
|
||||
bool CrossDissolveTransition::IsAccelerated() const
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
QString CrossDissolveTransition::AcceleratedCodeFragment() const
|
||||
{
|
||||
return ReadFileAsString(":/shaders/crossdissolve.frag");
|
||||
}
|
||||
@@ -1,21 +0,0 @@
|
||||
#ifndef CROSSDISSOLVETRANSITION_H
|
||||
#define CROSSDISSOLVETRANSITION_H
|
||||
|
||||
#include "../transition.h"
|
||||
|
||||
class CrossDissolveTransition : public TransitionBlock
|
||||
{
|
||||
public:
|
||||
CrossDissolveTransition() = default;
|
||||
|
||||
virtual Node* copy() const override;
|
||||
|
||||
virtual QString Name() const override;
|
||||
virtual QString id() const override;
|
||||
virtual QString Description() const override;
|
||||
|
||||
virtual bool IsAccelerated() const override;
|
||||
virtual QString AcceleratedCodeFragment() const override;
|
||||
};
|
||||
|
||||
#endif // CROSSDISSOLVETRANSITION_H
|
||||
Reference in New Issue
Block a user