diff options
| author | Ray <[email protected]> | 2017-03-26 23:06:17 +0200 |
|---|---|---|
| committer | GitHub <[email protected]> | 2017-03-26 23:06:17 +0200 |
| commit | 5338bbf70d3e2c71fcbd0db54e14b6cf2d5616c3 (patch) | |
| tree | c3a808940096983ca9753ad0d546d1567be2120b /src/utils.h | |
| parent | 2c0604aa29c720de03797ed102dfa3fe7f05f9b5 (diff) | |
| parent | 90b36bd274d523eb54700f71069558b15731adb0 (diff) | |
| download | raylib-5338bbf70d3e2c71fcbd0db54e14b6cf2d5616c3.tar.gz raylib-5338bbf70d3e2c71fcbd0db54e14b6cf2d5616c3.zip | |
Merge pull request #250 from raysan5/develop
Integrate develop branch
Diffstat (limited to 'src/utils.h')
| -rw-r--r-- | src/utils.h | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/src/utils.h b/src/utils.h index 3ffd025c..45ffcf81 100644 --- a/src/utils.h +++ b/src/utils.h @@ -1,10 +1,11 @@ /********************************************************************************************** * -* raylib.utils +* raylib.utils - Some common utility functions * -* Some utility functions * -* Copyright (c) 2014-2016 Ramon Santamaria (@raysan5) +* LICENSE: zlib/libpng +* +* Copyright (c) 2014-2017 Ramon Santamaria (@raysan5) * * This software is provided "as-is", without any express or implied warranty. In no event * will the authors be held liable for any damages arising from the use of this software. @@ -33,6 +34,8 @@ #include "rres.h" +#define SUPPORT_SAVE_PNG + //---------------------------------------------------------------------------------- // Some basic Defines //---------------------------------------------------------------------------------- @@ -61,9 +64,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 |
