You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-26 15:46:23 +00:00
Add Gradient resource preview generator
Co-Authored-By: Haoyu Qiu <timothyqiu32@gmail.com>
This commit is contained in:
committed by
Haoyu Qiu
parent
ab65273087
commit
ea46617f12
@@ -174,4 +174,15 @@ public:
|
||||
~EditorFontPreviewPlugin();
|
||||
};
|
||||
|
||||
class EditorGradientPreviewPlugin : public EditorResourcePreviewGenerator {
|
||||
GDCLASS(EditorGradientPreviewPlugin, EditorResourcePreviewGenerator);
|
||||
|
||||
public:
|
||||
virtual bool handles(const String &p_type) const;
|
||||
virtual bool generate_small_preview_automatically() const;
|
||||
virtual Ref<Texture> generate(const Ref<Resource> &p_from, const Size2 &p_size) const;
|
||||
|
||||
EditorGradientPreviewPlugin();
|
||||
};
|
||||
|
||||
#endif // EDITOR_PREVIEW_PLUGINS_H
|
||||
|
||||
Reference in New Issue
Block a user