diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2017-07-27 08:52:20 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-07-27 08:52:20 +0200 |
commit | a6d67b89b038e591a1c60b4ed741b8a3832960f7 (patch) | |
tree | a4387196a2ff7a577a470649eae094baedf0b3cf | |
parent | f5c3ee595db26d7ddf99fecb4bbe88723cb9be09 (diff) | |
parent | 20502d9180296cd9002e8af222ddc08e24f92c88 (diff) |
Merge pull request #9869 from BastiaanOlij/add_features_ios
Added export features for image formats
-rw-r--r-- | platform/iphone/export/export.cpp | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/platform/iphone/export/export.cpp b/platform/iphone/export/export.cpp index a5efae8678..6ae2a0692d 100644 --- a/platform/iphone/export/export.cpp +++ b/platform/iphone/export/export.cpp @@ -80,7 +80,15 @@ public: void EditorExportPlatformIOS::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 EditorExportPlatformIOS::get_export_options(List<ExportOption> *r_options) { @@ -98,6 +106,10 @@ void EditorExportPlatformIOS::get_export_options(List<ExportOption> *r_options) r_options->push_back(ExportOption(PropertyInfo(Variant::STRING, "application/copyright"), "")); r_options->push_back(ExportOption(PropertyInfo(Variant::INT, "application/bits_mode", PROPERTY_HINT_ENUM, "Fat (32 & 64 bits),64 bits,32 bits"), 1)); + r_options->push_back(ExportOption(PropertyInfo(Variant::BOOL, "texture_format/s3tc"), false)); + r_options->push_back(ExportOption(PropertyInfo(Variant::BOOL, "texture_format/etc"), false)); + r_options->push_back(ExportOption(PropertyInfo(Variant::BOOL, "texture_format/etc2"), true)); + /* probably need some more info */ } |