summaryrefslogtreecommitdiffstats
path: root/core/io/image.h
diff options
context:
space:
mode:
authorMarcin Nowak <marcin.j.nowak@gmail.com>2022-11-24 01:31:04 +0200
committerMarcin Nowak <marcin.j.nowak@gmail.com>2023-07-31 21:31:26 +0200
commit34ab1c8a36e61b386c210fb908b9ebfa86513149 (patch)
tree5456a34b342ff19167fb405dbdb5a9d353b6adc1 /core/io/image.h
parentdcd187da9580b41688f4e5110acd767d4deab8de (diff)
downloadredot-engine-34ab1c8a36e61b386c210fb908b9ebfa86513149.tar.gz
Implement loading DDS textures at run-time
Diffstat (limited to 'core/io/image.h')
-rw-r--r--core/io/image.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/core/io/image.h b/core/io/image.h
index f877b00ee6..f68543ba24 100644
--- a/core/io/image.h
+++ b/core/io/image.h
@@ -150,6 +150,7 @@ public:
static ImageMemLoadFunc _tga_mem_loader_func;
static ImageMemLoadFunc _bmp_mem_loader_func;
static ScalableImageMemLoadFunc _svg_scalable_mem_loader_func;
+ static ImageMemLoadFunc _dds_mem_loader_func;
static void (*_image_compress_bc_func)(Image *, UsedChannels p_channels);
static void (*_image_compress_bptc_func)(Image *, UsedChannels p_channels);
@@ -402,6 +403,7 @@ public:
Error load_webp_from_buffer(const Vector<uint8_t> &p_array);
Error load_tga_from_buffer(const Vector<uint8_t> &p_array);
Error load_bmp_from_buffer(const Vector<uint8_t> &p_array);
+ Error load_dds_from_buffer(const Vector<uint8_t> &p_array);
Error load_svg_from_buffer(const Vector<uint8_t> &p_array, float scale = 1.0);
Error load_svg_from_string(const String &p_svg_str, float scale = 1.0);