diff options
author | bruvzg <7645683+bruvzg@users.noreply.github.com> | 2022-02-13 14:41:29 +0200 |
---|---|---|
committer | bruvzg <7645683+bruvzg@users.noreply.github.com> | 2022-03-17 08:15:29 +0200 |
commit | f19cd44346a68a649cabfe85cc3ba7a44ceb0ca4 (patch) | |
tree | 16f36f18199b28305e92084b4790d664632f3fac /core/io/image.h | |
parent | 178961a6dc14155c0e65ec0040a2b2b328550317 (diff) | |
download | redot-engine-f19cd44346a68a649cabfe85cc3ba7a44ceb0ca4.tar.gz |
Unify TextServer built-in module and GDExtension code.
Diffstat (limited to 'core/io/image.h')
-rw-r--r-- | core/io/image.h | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/core/io/image.h b/core/io/image.h index 53bfa0881f..39c700565b 100644 --- a/core/io/image.h +++ b/core/io/image.h @@ -155,14 +155,6 @@ protected: static void _bind_methods(); private: - void _create_empty(int p_width, int p_height, bool p_use_mipmaps, Format p_format) { - create(p_width, p_height, p_use_mipmaps, p_format); - } - - void _create_from_data(int p_width, int p_height, bool p_use_mipmaps, Format p_format, const Vector<uint8_t> &p_data) { - create(p_width, p_height, p_use_mipmaps, p_format, p_data); - } - Format format = FORMAT_L8; Vector<uint8_t> data; int width = 0; @@ -289,6 +281,14 @@ public: Vector<uint8_t> save_png_to_buffer() const; Error save_exr(const String &p_path, bool p_grayscale) const; + void create_empty(int p_width, int p_height, bool p_use_mipmaps, Format p_format) { + create(p_width, p_height, p_use_mipmaps, p_format); + } + + void create_from_data(int p_width, int p_height, bool p_use_mipmaps, Format p_format, const Vector<uint8_t> &p_data) { + create(p_width, p_height, p_use_mipmaps, p_format, p_data); + } + /** * create an empty image */ |