mirror of
https://github.com/raysan5/raylib.git
synced 2025-09-12 14:28:15 +00:00
REMOVED: GetImageDataNormalized()
Let the advance users manage it as they want...
This commit is contained in:
@@ -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 *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 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
|
RLAPI Rectangle GetImageAlphaBorder(Image image, float threshold); // Get image alpha border rectangle
|
||||||
|
|
||||||
// Image drawing functions
|
// Image drawing functions
|
||||||
|
@@ -186,6 +186,7 @@ static Image LoadPVR(const unsigned char *fileData, unsigned int fileSize); //
|
|||||||
#if defined(SUPPORT_FILEFORMAT_ASTC)
|
#if defined(SUPPORT_FILEFORMAT_ASTC)
|
||||||
static Image LoadASTC(const unsigned char *fileData, unsigned int fileSize); // Load ASTC file data
|
static Image LoadASTC(const unsigned char *fileData, unsigned int fileSize); // Load ASTC file data
|
||||||
#endif
|
#endif
|
||||||
|
static Vector4 *GetImageDataNormalized(Image image); // Get pixel data from image as Vector4 array (float normalized)
|
||||||
|
|
||||||
//----------------------------------------------------------------------------------
|
//----------------------------------------------------------------------------------
|
||||||
// Module Functions Definition
|
// 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)
|
// 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));
|
Vector4 *pixels = (Vector4 *)RL_MALLOC(image.width*image.height*sizeof(Vector4));
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user