瀏覽代碼

Support image export

pull/650/head
Ray 7 年之前
父節點
當前提交
f503fded67
共有 3 個檔案被更改,包括 5 行新增2 行删除
  1. +1
    -1
      src/config.h
  2. +3
    -0
      src/config.h.in
  3. +1
    -1
      src/textures.c

+ 1
- 1
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

+ 3
- 0
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

+ 1
- 1
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)

Loading…
取消
儲存