diff options
author | Juan Linietsky <reduzio@gmail.com> | 2017-02-19 23:19:30 -0300 |
---|---|---|
committer | Juan Linietsky <reduzio@gmail.com> | 2017-02-19 23:21:35 -0300 |
commit | f6950956bdab064cc1e027b93a0ddd0d94dda882 (patch) | |
tree | 595f634ffbd8d5419c82500971e5c3ce2308d229 /platform/x11/export | |
parent | 5e3fc7d06956dcda8b50cd4f028c83cf967f7223 (diff) |
Editor Export Settings Dialog is completed!! Now on to make some exporters..
Diffstat (limited to 'platform/x11/export')
-rw-r--r-- | platform/x11/export/export.cpp | 23 |
1 files changed, 20 insertions, 3 deletions
diff --git a/platform/x11/export/export.cpp b/platform/x11/export/export.cpp index 5a4751b387..5c7f98c1f3 100644 --- a/platform/x11/export/export.cpp +++ b/platform/x11/export/export.cpp @@ -28,11 +28,27 @@ /*************************************************************************/ #include "export.h" #include "platform/x11/logo.h" -#include "tools/editor/editor_import_export.h" +#include "tools/editor/editor_export.h" #include "scene/resources/texture.h" -#if 0 + + + void register_x11_exporter() { + Ref<EditorExportPlatformPC> platform; + platform.instance(); + + Image img(_x11_logo); + Ref<ImageTexture> logo; + logo.instance(); + logo->create_from_image(img); + platform->set_logo(logo); + platform->set_name("Linux/X11"); + platform->set_extension(""); + + EditorExport::get_singleton()->add_export_platform(platform); + + #if 0 Image img(_x11_logo); Ref<ImageTexture> logo = memnew( ImageTexture ); logo->create_from_image(img); @@ -49,5 +65,6 @@ void register_x11_exporter() { EditorImportExport::get_singleton()->add_export_platform(exporter); } + #endif } -#endif + |