diff options
| author | Ray <raysan5@gmail.com> | 2018-09-17 17:06:58 +0200 |
|---|---|---|
| committer | Ray <raysan5@gmail.com> | 2018-09-17 17:06:58 +0200 |
| commit | f503fded67cf0c087d5a7e6e7561891e50e4d0f5 (patch) | |
| tree | 63c08bc92b53ee59d8b0597694d77f4e0a5bdde9 /src | |
| parent | ec5c9686b3afef5fb2c147fc9786b6890c025dd9 (diff) | |
| download | raylib-f503fded67cf0c087d5a7e6e7561891e50e4d0f5.tar.gz raylib-f503fded67cf0c087d5a7e6e7561891e50e4d0f5.zip | |
Support image export
Diffstat (limited to 'src')
| -rw-r--r-- | src/config.h | 2 | ||||
| -rw-r--r-- | src/config.h.in | 3 | ||||
| -rw-r--r-- | src/textures.c | 2 |
3 files changed, 5 insertions, 2 deletions
diff --git a/src/config.h b/src/config.h index 9bb5ab22..c2238a79 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 f9d474cd..742067ce 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 7abbaf53..2e1c5c0f 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) |
