diff options
| author | Juan Linietsky | 2016-01-03 17:14:28 -0300 |
|---|---|---|
| committer | Juan Linietsky | 2016-01-03 17:14:28 -0300 |
| commit | e8fbf39f886b2b5dbf5e14f07cd1dbefe8d48bf4 (patch) | |
| tree | f767c7db6b089cdc6d4c56cce09a2c65fa68e274 /tools/editor/plugins/editor_preview_plugins.h | |
| parent | b988f016fd2ae1fc6fab4daa1eb580e1446dbd8d (diff) | |
| download | godot-e8fbf39f886b2b5dbf5e14f07cd1dbefe8d48bf4.tar.gz godot-e8fbf39f886b2b5dbf5e14f07cd1dbefe8d48bf4.tar.zst godot-e8fbf39f886b2b5dbf5e14f07cd1dbefe8d48bf4.zip | |
-Replaced tinyjpg for jpgd (public domain), fixes progressive encoded jpgs and speeds up. Closes #2040
-Removed support of loading BitMap as image, now it must be load as a pnm, also closes #2040
Diffstat (limited to '')
| -rw-r--r-- | tools/editor/plugins/editor_preview_plugins.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tools/editor/plugins/editor_preview_plugins.h b/tools/editor/plugins/editor_preview_plugins.h index 98071e2a0..b3bfda804 100644 --- a/tools/editor/plugins/editor_preview_plugins.h +++ b/tools/editor/plugins/editor_preview_plugins.h @@ -13,6 +13,17 @@ public: }; +class EditorBitmapPreviewPlugin : public EditorResourcePreviewGenerator { +public: + + virtual bool handles(const String& p_type) const; + virtual Ref<Texture> generate(const RES& p_from); + + EditorBitmapPreviewPlugin(); +}; + + + class EditorPackedScenePreviewPlugin : public EditorResourcePreviewGenerator { Ref<Texture> _gen_from_imd(Ref<ResourceImportMetadata> p_imd); |
