summaryrefslogtreecommitdiffhomepage
path: root/src/utils.h
diff options
context:
space:
mode:
authorraysan5 <[email protected]>2017-03-19 12:52:58 +0100
committerraysan5 <[email protected]>2017-03-19 12:52:58 +0100
commit8f5ff64420dda659583c156b9c5e42e60384e247 (patch)
tree2b0ee8a47d38a41cc105b6b79211b2873ca2b21c /src/utils.h
parentca8c56561792a58d9b66fef668cf9d3a0fc4e876 (diff)
downloadraylib-8f5ff64420dda659583c156b9c5e42e60384e247.tar.gz
raylib-8f5ff64420dda659583c156b9c5e42e60384e247.zip
Working on file header comments...
Diffstat (limited to 'src/utils.h')
-rw-r--r--src/utils.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/utils.h b/src/utils.h
index 3ffd025c..037d7e94 100644
--- a/src/utils.h
+++ b/src/utils.h
@@ -33,6 +33,8 @@
#include "rres.h"
+#define SUPPORT_SAVE_PNG
+
//----------------------------------------------------------------------------------
// Some basic Defines
//----------------------------------------------------------------------------------
@@ -61,9 +63,13 @@ void TraceLog(int msgType, const char *text, ...); // Outputs a trace log messa
const char *GetExtension(const char *fileName); // Returns extension of a filename
#if defined(PLATFORM_DESKTOP) || defined(PLATFORM_RPI)
+#if defined(SUPPORT_SAVE_BMP)
void SaveBMP(const char *fileName, unsigned char *imgData, int width, int height, int compSize);
+#endif
+#if defined(SUPPORT_SAVE_PNG)
void SavePNG(const char *fileName, unsigned char *imgData, int width, int height, int compSize);
#endif
+#endif
#if defined(PLATFORM_ANDROID)
void InitAssetManager(AAssetManager *manager); // Initialize asset manager from android app