Browse Source

REMOVED: GetImageDataNormalized()

Let the advance users manage it as they want...
pull/1444/head
raysan5 4 years ago
parent
commit
d6f4f3ee88
2 changed files with 2 additions and 2 deletions
  1. +0
    -1
      src/raylib.h
  2. +2
    -1
      src/textures.c

+ 0
- 1
src/raylib.h View File

@ -1173,7 +1173,6 @@ RLAPI void ImageColorReplace(Image *image, Color color, Color replace);
RLAPI Color *GetImageData(Image image); // Get pixel data from image as a Color struct array
RLAPI Color *GetImagePalette(Image image, int maxPaletteSize, int *extractCount); // Get color palette from image to maximum size (memory should be freed)
RLAPI Vector4 *GetImageDataNormalized(Image image); // Get pixel data from image as Vector4 array (float normalized)
RLAPI Rectangle GetImageAlphaBorder(Image image, float threshold); // Get image alpha border rectangle
// Image drawing functions

+ 2
- 1
src/textures.c View File

@ -186,6 +186,7 @@ static Image LoadPVR(const unsigned char *fileData, unsigned int fileSize); //
#if defined(SUPPORT_FILEFORMAT_ASTC)
static Image LoadASTC(const unsigned char *fileData, unsigned int fileSize); // Load ASTC file data
#endif
static Vector4 *GetImageDataNormalized(Image image); // Get pixel data from image as Vector4 array (float normalized)
//----------------------------------------------------------------------------------
// Module Functions Definition
@ -2172,7 +2173,7 @@ Color *GetImagePalette(Image image, int maxPaletteSize, int *extractCount)
}
// Get pixel data from image as Vector4 array (float normalized)
Vector4 *GetImageDataNormalized(Image image)
static Vector4 *GetImageDataNormalized(Image image)
{
Vector4 *pixels = (Vector4 *)RL_MALLOC(image.width*image.height*sizeof(Vector4));

Loading…
Cancel
Save