blur: merged box and gaussian blurs into one node

While these are two separate blur effects, merging them into one node will
allow quick swapping of blur methods.
This commit is contained in:
itsmattkc
2020-04-16 13:17:30 +10:00
parent 61654e8127
commit b4795c0222
8 changed files with 181 additions and 206 deletions
+2 -5
View File
@@ -47,8 +47,7 @@ void NodeFactory::Initialize()
library_.append(CreateInternal(static_cast<InternalID>(i)));
}
library_.append(new ExternalNode(":/shaders/gaussianblur.xml"));
library_.append(new ExternalNode(":/shaders/boxblur.xml"));
library_.append(new ExternalNode(":/shaders/blur.xml"));
library_.append(new ExternalNode(":/shaders/opacity.xml"));
library_.append(new ExternalNode(":/shaders/solid.xml"));
library_.append(new ExternalNode(":/shaders/stroke.xml"));
@@ -60,9 +59,7 @@ void NodeFactory::Initialize()
void NodeFactory::Destroy()
{
foreach (Node* n, library_) {
delete n;
}
qDeleteAll(library_);
library_.clear();
}