summaryrefslogtreecommitdiff
path: root/tools/editor/plugins/editor_preview_plugins.h
diff options
context:
space:
mode:
authorreduz <juan@okamstudio.com>2015-05-31 21:13:24 -0300
committerreduz <juan@okamstudio.com>2015-05-31 21:13:24 -0300
commit07a466f6e6dd28bbb8b917690b634070537f1613 (patch)
tree0b3f318fa07ee4b3499b798ab0ebe73aa3d48f2c /tools/editor/plugins/editor_preview_plugins.h
parentd5348eebdc7228f7836582cd9bd4ed4f5fd59348 (diff)
mesh preview
Diffstat (limited to 'tools/editor/plugins/editor_preview_plugins.h')
-rw-r--r--tools/editor/plugins/editor_preview_plugins.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/tools/editor/plugins/editor_preview_plugins.h b/tools/editor/plugins/editor_preview_plugins.h
index fc42ebfc0e..98071e2a0e 100644
--- a/tools/editor/plugins/editor_preview_plugins.h
+++ b/tools/editor/plugins/editor_preview_plugins.h
@@ -65,5 +65,24 @@ public:
};
+class EditorMeshPreviewPlugin : public EditorResourcePreviewGenerator {
+
+ RID scenario;
+ RID mesh_instance;
+ RID viewport;
+ RID light;
+ RID light_instance;
+ RID light2;
+ RID light_instance2;
+ RID camera;
+public:
+
+ virtual bool handles(const String& p_type) const;
+ virtual Ref<Texture> generate(const RES& p_from);
+
+ EditorMeshPreviewPlugin();
+ ~EditorMeshPreviewPlugin();
+};
+
#endif // EDITORPREVIEWPLUGINS_H