You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-14 13:41:12 +00:00
Add static methods for creating Image and ImageTexture
This commit is contained in:
@@ -252,7 +252,7 @@ void EditorExportPlatformOSX::_make_icon(const Ref<Image> &p_icon, Vector<uint8_
|
||||
|
||||
if (icon_infos[i].is_png) {
|
||||
// Encode PNG icon.
|
||||
it->create_from_image(copy);
|
||||
it->set_image(copy);
|
||||
String path = EditorPaths::get_singleton()->get_cache_dir().plus_file("icon.png");
|
||||
ResourceSaver::save(path, it);
|
||||
|
||||
@@ -1666,9 +1666,7 @@ bool EditorExportPlatformOSX::can_export(const Ref<EditorExportPreset> &p_preset
|
||||
}
|
||||
|
||||
EditorExportPlatformOSX::EditorExportPlatformOSX() {
|
||||
Ref<Image> img = memnew(Image(_osx_logo));
|
||||
logo.instantiate();
|
||||
logo->create_from_image(img);
|
||||
logo = ImageTexture::create_from_image(memnew(Image(_osx_logo)));
|
||||
}
|
||||
|
||||
EditorExportPlatformOSX::~EditorExportPlatformOSX() {
|
||||
|
||||
Reference in New Issue
Block a user