diff options
| author | raysan5 <[email protected]> | 2016-12-27 17:37:35 +0100 |
|---|---|---|
| committer | raysan5 <[email protected]> | 2016-12-27 17:37:35 +0100 |
| commit | e7464d5fc376783912da9086a4bf49d2d5759135 (patch) | |
| tree | 4146e30a8e3c143b4c5ff541e045bc915a8d1d5e /src/utils.h | |
| parent | 3c91dc099dcee1457207c15c30da61c1b279c554 (diff) | |
| download | raylib-e7464d5fc376783912da9086a4bf49d2d5759135.tar.gz raylib-e7464d5fc376783912da9086a4bf49d2d5759135.zip | |
Review some formatting and naming
- Renamed WritePNG() to SavePNG() for consistency with other file
loading functions
- Renamed WriteBitmap() to SaveBMP() for consistency with other file
loading functions
- Redesigned SaveBMP() to use stb_image_write
Diffstat (limited to 'src/utils.h')
| -rw-r--r-- | src/utils.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/utils.h b/src/utils.h index 045b0692..e0db51fe 100644 --- a/src/utils.h +++ b/src/utils.h @@ -31,6 +31,8 @@ #include <android/asset_manager.h> // Required for: AAssetManager #endif +#include "rres.h" + //---------------------------------------------------------------------------------- // Some basic Defines //---------------------------------------------------------------------------------- @@ -66,11 +68,9 @@ extern "C" { // Prevents name mangling of functions //---------------------------------------------------------------------------------- // Module Functions Declaration //---------------------------------------------------------------------------------- -unsigned char *DecompressData(const unsigned char *data, unsigned long compSize, int uncompSize); - #if defined(PLATFORM_DESKTOP) || defined(PLATFORM_RPI) -void WriteBitmap(const char *fileName, unsigned char *imgData, int width, int height); -void WritePNG(const char *fileName, unsigned char *imgData, int width, int height, int compSize); +void SaveBMP(const char *fileName, unsigned char *imgData, int width, int height, int compSize); +void SavePNG(const char *fileName, unsigned char *imgData, int width, int height, int compSize); #endif void TraceLog(int msgType, const char *text, ...); // Outputs a trace log message |
