[rtextures] Fix LoadImageAnimFromMemory()
warning for fileData
(#3686)
* Fix LoadImageAnimFromMemory() warning for fileData * Add LoadImageAnimFromMemory() to raylib.h * Fix missing ; on previous commit
This commit is contained in:
parent
5b5a2d035d
commit
fd5e1e6afb
2 changed files with 9 additions and 8 deletions
|
@ -1302,6 +1302,7 @@ RLAPI Image LoadImage(const char *fileName);
|
|||
RLAPI Image LoadImageRaw(const char *fileName, int width, int height, int format, int headerSize); // Load image from RAW file data
|
||||
RLAPI Image LoadImageSvg(const char *fileNameOrString, int width, int height); // Load image from SVG file data or string with specified size
|
||||
RLAPI Image LoadImageAnim(const char *fileName, int *frames); // Load image sequence from file (frames appended to image.data)
|
||||
RLAPI Image LoadImageAnimFromMemory(const char *fileType, const unsigned char *fileData, int dataSize, int *frames); // Load image sequence from memory buffer
|
||||
RLAPI Image LoadImageFromMemory(const char *fileType, const unsigned char *fileData, int dataSize); // Load image from memory buffer, fileType refers to extension: i.e. '.png'
|
||||
RLAPI Image LoadImageFromTexture(Texture2D texture); // Load image from GPU texture data
|
||||
RLAPI Image LoadImageFromScreen(void); // Load image from screen buffer and (screenshot)
|
||||
|
|
|
@ -443,7 +443,7 @@ Image LoadImageAnim(const char *fileName, int *frames)
|
|||
// - Number of frames is returned through 'frames' parameter
|
||||
// - All frames are returned in RGBA format
|
||||
// - Frames delay data is discarded
|
||||
Image LoadImageAnimFromMemory(const char *fileType,const char *fileData, int dataSize,int *frames)
|
||||
Image LoadImageAnimFromMemory(const char *fileType, const unsigned char *fileData, int dataSize, int *frames)
|
||||
{
|
||||
Image image = { 0 };
|
||||
int frameCount = 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue