-
-
Notifications
You must be signed in to change notification settings - Fork 46
Expand file tree
/
Copy patheffectbuilder.h
More file actions
54 lines (33 loc) · 1.16 KB
/
effectbuilder.h
File metadata and controls
54 lines (33 loc) · 1.16 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
#ifndef EFFECTBUILDER_H
#define EFFECTBUILDER_H
#include <editor/assetconverter.h>
#include "effectgraph.h"
class EffectBuilderSettings : public AssetConverterSettings {
Q_OBJECT
Q_PROPERTY(float thumbnailWarmup READ thumbnailWarmup WRITE setThumbnailWarmup DESIGNABLE true USER true)
public:
EffectBuilderSettings();
float thumbnailWarmup() const;
void setThumbnailWarmup(float value);
private:
QString defaultIconPath(const QString &) const override;
private:
float m_thumbnailWarmup;
};
class EffectBuilder : public AssetConverter {
Q_OBJECT
public:
EffectBuilder();
static int version();
QStringList suffixes() const override { return {"vfx", "efx"}; }
EffectGraph &graph() { return m_graph; }
protected:
ReturnCode convertFile(AssetConverterSettings *) override;
AssetConverterSettings *createSettings() override;
Actor *createActor(const AssetConverterSettings *settings, const QString &guid) const override;
QString templatePath() const override { return ":/templates/VisualEffect.vfx"; }
void convertOld(const QString &path);
private:
EffectGraph m_graph;
};
#endif // EFFECTBUILDER_H