summaryrefslogtreecommitdiff
path: root/core/image.h
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2020-11-07 16:38:09 +0100
committerGitHub <noreply@github.com>2020-11-07 16:38:09 +0100
commit329d2c1ced685a107b1c27e67b212b5620968a0a (patch)
treea737d8af45d01138c8b21ccb20c230614deade35 /core/image.h
parentdf6fa6c306409b28385e40c945fe7d5f201a3fd2 (diff)
parent0209e3790e4ab984b811f2994947ae71eef69b82 (diff)
Merge pull request #42947 from Calinou/image-load-bmp-from-buffer
Add `Image.load_bmp_from_buffer()` for run-time BMP image loading
Diffstat (limited to 'core/image.h')
-rw-r--r--core/image.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/core/image.h b/core/image.h
index 06794c7fed..d5d687b3ee 100644
--- a/core/image.h
+++ b/core/image.h
@@ -136,6 +136,7 @@ public:
static ImageMemLoadFunc _jpg_mem_loader_func;
static ImageMemLoadFunc _webp_mem_loader_func;
static ImageMemLoadFunc _tga_mem_loader_func;
+ static ImageMemLoadFunc _bmp_mem_loader_func;
static void (*_image_compress_bc_func)(Image *, float, UsedChannels p_channels);
static void (*_image_compress_bptc_func)(Image *, float p_lossy_quality, UsedChannels p_channels);
@@ -375,6 +376,7 @@ public:
Error load_jpg_from_buffer(const Vector<uint8_t> &p_array);
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);
void convert_rg_to_ra_rgba8();
void convert_ra_rgba8_to_rg();