diff options
| author | BastiaanOlij | 2017-09-08 11:39:32 +1000 |
|---|---|---|
| committer | BastiaanOlij | 2017-09-08 11:39:32 +1000 |
| commit | 099546ac005d2ddbb5fb806c7ed678484ff02442 (patch) | |
| tree | 1b7d8455d881a212cebad40533f2d8dfd4f75a52 /platform/osx/export/export.cpp | |
| parent | 5f0d367fef25b30742ba71f12e339137e02c59ab (diff) | |
| download | godot-099546ac005d2ddbb5fb806c7ed678484ff02442.tar.gz godot-099546ac005d2ddbb5fb806c7ed678484ff02442.tar.zst godot-099546ac005d2ddbb5fb806c7ed678484ff02442.zip | |
Diffstat (limited to 'platform/osx/export/export.cpp')
| -rw-r--r-- | platform/osx/export/export.cpp | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/platform/osx/export/export.cpp b/platform/osx/export/export.cpp index 7f749030e..2ec76fe0d 100644 --- a/platform/osx/export/export.cpp +++ b/platform/osx/export/export.cpp @@ -88,8 +88,15 @@ public: }; void EditorExportPlatformOSX::get_preset_features(const Ref<EditorExportPreset> &p_preset, List<String> *r_features) { - - // what does this need to do? + if (p_preset->get("texture_format/s3tc")) { + r_features->push_back("s3tc"); + } + if (p_preset->get("texture_format/etc")) { + r_features->push_back("etc"); + } + if (p_preset->get("texture_format/etc2")) { + r_features->push_back("etc2"); + } } void EditorExportPlatformOSX::get_export_options(List<ExportOption> *r_options) { @@ -112,6 +119,10 @@ void EditorExportPlatformOSX::get_export_options(List<ExportOption> *r_options) r_options->push_back(ExportOption(PropertyInfo(Variant::STRING, "codesign/identity"), "")); r_options->push_back(ExportOption(PropertyInfo(Variant::STRING, "codesign/entitlements"), "")); #endif + + r_options->push_back(ExportOption(PropertyInfo(Variant::BOOL, "texture_format/s3tc"), true)); + r_options->push_back(ExportOption(PropertyInfo(Variant::BOOL, "texture_format/etc"), false)); + r_options->push_back(ExportOption(PropertyInfo(Variant::BOOL, "texture_format/etc2"), false)); } void EditorExportPlatformOSX::_make_icon(const Ref<Image> &p_icon, Vector<uint8_t> &p_data) { |
