From f503fded67cf0c087d5a7e6e7561891e50e4d0f5 Mon Sep 17 00:00:00 2001 From: Ray Date: Mon, 17 Sep 2018 17:06:58 +0200 Subject: [PATCH] Support image export --- src/config.h | 2 +- src/config.h.in | 3 +++ src/textures.c | 2 +- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/config.h b/src/config.h index 9bb5ab22a..c2238a796 100644 --- a/src/config.h +++ b/src/config.h @@ -87,7 +87,7 @@ //#define SUPPORT_FILEFORMAT_PVR 1 // Support image export functionality (.png, .bmp, .tga, .jpg) -#define SUPPORT_IMAGE_EXPORT +#define SUPPORT_IMAGE_EXPORT 1 // Support multiple image editing functions to scale, adjust colors, flip, draw on images, crop... // If not defined only three image editing functions supported: ImageFormat(), ImageAlphaMask(), ImageToPOT() #define SUPPORT_IMAGE_MANIPULATION 1 diff --git a/src/config.h.in b/src/config.h.in index f9d474cdc..742067ce7 100644 --- a/src/config.h.in +++ b/src/config.h.in @@ -41,6 +41,9 @@ #cmakedefine SUPPORT_FILEFORMAT_PKM 1 #cmakedefine SUPPORT_FILEFORMAT_PVR 1 +// Support image export functionality (.png, .bmp, .tga, .jpg) +#define SUPPORT_IMAGE_EXPORT 1 + /* Support multiple image editing functions to scale, adjust colors, flip, draw on images, crop... If not defined only three image editing functions supported: ImageFormat(), ImageAlphaMask(), ImageToPOT() */ #cmakedefine SUPPORT_IMAGE_MANIPULATION 1 diff --git a/src/textures.c b/src/textures.c index 7abbaf537..2e1c5c0f7 100644 --- a/src/textures.c +++ b/src/textures.c @@ -108,7 +108,7 @@ #if defined(SUPPORT_IMAGE_EXPORT) #define STB_IMAGE_WRITE_IMPLEMENTATION - #include "external/stb_image_write.h" // Required for: stbi_write_bmp(), stbi_write_png() + #include "external/stb_image_write.h" // Required for: stbi_write_*() #endif #if defined(SUPPORT_IMAGE_MANIPULATION)