From 8d4acb7293a565ac8380a37b52a4a0244c578d56 Mon Sep 17 00:00:00 2001 From: Relintai Date: Fri, 19 Jan 2024 00:04:00 +0100 Subject: [PATCH] Forward declare stbi_write_png_to_mem(). --- sfw/render_core/3rd_stb_image_write.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sfw/render_core/3rd_stb_image_write.h b/sfw/render_core/3rd_stb_image_write.h index e4b32ed..c2cbccc 100644 --- a/sfw/render_core/3rd_stb_image_write.h +++ b/sfw/render_core/3rd_stb_image_write.h @@ -194,6 +194,8 @@ STBIWDEF int stbi_write_jpg_to_func(stbi_write_func *func, void *context, int x, STBIWDEF void stbi_flip_vertically_on_write(int flip_boolean); +STBIWDEF unsigned char *stbi_write_png_to_mem(const unsigned char *pixels, int stride_bytes, int x, int y, int n, int *out_len); + #endif//INCLUDE_STB_IMAGE_WRITE_H #ifdef STB_IMAGE_WRITE_IMPLEMENTATION