diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2022-04-26 12:22:07 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-26 12:22:07 +0200 |
commit | e8cca501fef02e58341d4d37d02f17491cd60e3b (patch) | |
tree | ac65ad12d705876dc58477555a0e4574333ca6dc /editor/plugins/editor_preview_plugins.h | |
parent | 948f4e3fbd479ef05e4426e8ac5f827b89374594 (diff) | |
parent | a93834c819a9d482a388909279190c84780375ed (diff) |
Merge pull request #60395 from Geometror/editor-gradient-preview-plugin
Diffstat (limited to 'editor/plugins/editor_preview_plugins.h')
-rw-r--r-- | editor/plugins/editor_preview_plugins.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/editor/plugins/editor_preview_plugins.h b/editor/plugins/editor_preview_plugins.h index 803f03f17e..73eb90dd86 100644 --- a/editor/plugins/editor_preview_plugins.h +++ b/editor/plugins/editor_preview_plugins.h @@ -182,4 +182,15 @@ public: EditorTileMapPatternPreviewPlugin(); ~EditorTileMapPatternPreviewPlugin(); }; + +class EditorGradientPreviewPlugin : public EditorResourcePreviewGenerator { + GDCLASS(EditorGradientPreviewPlugin, EditorResourcePreviewGenerator); + +public: + virtual bool handles(const String &p_type) const override; + virtual bool generate_small_preview_automatically() const override; + virtual Ref<Texture2D> generate(const RES &p_from, const Size2 &p_size) const override; + + EditorGradientPreviewPlugin(); +}; #endif // EDITORPREVIEWPLUGINS_H |