summaryrefslogtreecommitdiffhomepage
path: root/src/utils.c
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.c
parentca8c56561792a58d9b66fef668cf9d3a0fc4e876 (diff)
downloadraylib-8f5ff64420dda659583c156b9c5e42e60384e247.tar.gz
raylib-8f5ff64420dda659583c156b9c5e42e60384e247.zip
Working on file header comments...
Diffstat (limited to 'src/utils.c')
-rw-r--r--src/utils.c19
1 files changed, 15 insertions, 4 deletions
diff --git a/src/utils.c b/src/utils.c
index 9a2a723a..54923e34 100644
--- a/src/utils.c
+++ b/src/utils.c
@@ -4,14 +4,20 @@
*
* CONFIGURATION:
*
-* #define SUPPORT_SAVE_PNG
-* Enable saving PNG fileformat
+* #define SUPPORT_SAVE_PNG (defined by default)
+* Support saving image data as PNG fileformat
* NOTE: Requires stb_image_write library
*
* #define SUPPORT_SAVE_BMP
+* Support saving image data as BMP fileformat
+* NOTE: Requires stb_image_write library
+*
+* #define SUPPORT_TRACELOG
+* Show TraceLog() output messages
+* NOTE: By default DEBUG traces not shown
*
-* #define DO_NOT_TRACE_DEBUG_MSGS
-* Avoid showing DEBUG TraceLog() messages
+* #define SUPPORT_TRACELOG_DEBUG
+* Show TraceLog() DEBUG messages
*
* DEPENDENCIES:
* stb_image_write - PNG writting functions
@@ -129,18 +135,23 @@ void TraceLog(int msgType, const char *text, ...)
}
#if defined(PLATFORM_DESKTOP) || defined(PLATFORM_RPI)
+
+#if defined(SUPPORT_SAVE_BMP)
// Creates a BMP image file from an array of pixel data
void SaveBMP(const char *fileName, unsigned char *imgData, int width, int height, int compSize)
{
stbi_write_bmp(fileName, width, height, compSize, imgData);
}
+#endif
+#if defined(SUPPORT_SAVE_PNG)
// Creates a PNG image file from an array of pixel data
void SavePNG(const char *fileName, unsigned char *imgData, int width, int height, int compSize)
{
stbi_write_png(fileName, width, height, compSize, imgData, width*compSize);
}
#endif
+#endif
#if defined(PLATFORM_ANDROID)
// Initialize asset manager from android app