|
|
@ -345,7 +345,7 @@ Image LoadImageFromMemory(const char *fileType, const unsigned char *fileData, i |
|
|
|
#endif |
|
|
|
} |
|
|
|
#if defined(SUPPORT_FILEFORMAT_HDR) |
|
|
|
else if (TextIsEqual(fileExtLower, "hdr")) |
|
|
|
else if (TextIsEqual(fileExtLower, ".hdr")) |
|
|
|
{ |
|
|
|
#if defined(STBI_REQUIRED) |
|
|
|
if (fileData != NULL) |
|
|
@ -368,19 +368,19 @@ Image LoadImageFromMemory(const char *fileType, const unsigned char *fileData, i |
|
|
|
} |
|
|
|
#endif |
|
|
|
#if defined(SUPPORT_FILEFORMAT_DDS) |
|
|
|
else if (TextIsEqual(fileExtLower, "dds")) image = LoadDDS(fileData, dataSize); |
|
|
|
else if (TextIsEqual(fileExtLower, ".dds")) image = LoadDDS(fileData, dataSize); |
|
|
|
#endif |
|
|
|
#if defined(SUPPORT_FILEFORMAT_PKM) |
|
|
|
else if (TextIsEqual(fileExtLower, "pkm")) image = LoadPKM(fileData, dataSize); |
|
|
|
else if (TextIsEqual(fileExtLower, ".pkm")) image = LoadPKM(fileData, dataSize); |
|
|
|
#endif |
|
|
|
#if defined(SUPPORT_FILEFORMAT_KTX) |
|
|
|
else if (TextIsEqual(fileExtLower, "ktx")) image = LoadKTX(fileData, dataSize); |
|
|
|
else if (TextIsEqual(fileExtLower, ".ktx")) image = LoadKTX(fileData, dataSize); |
|
|
|
#endif |
|
|
|
#if defined(SUPPORT_FILEFORMAT_PVR) |
|
|
|
else if (TextIsEqual(fileExtLower, "pvr")) image = LoadPVR(fileData, dataSize); |
|
|
|
else if (TextIsEqual(fileExtLower, ".pvr")) image = LoadPVR(fileData, dataSize); |
|
|
|
#endif |
|
|
|
#if defined(SUPPORT_FILEFORMAT_ASTC) |
|
|
|
else if (TextIsEqual(fileExtLower, "astc")) image = LoadASTC(fileData, dataSize); |
|
|
|
else if (TextIsEqual(fileExtLower, ".astc")) image = LoadASTC(fileData, dataSize); |
|
|
|
#endif |
|
|
|
else TRACELOG(LOG_WARNING, "IMAGE: File format not supported"); |
|
|
|
|
|
|
|