mirror of
https://github.com/raysan5/raygui.git
synced 2026-01-30 10:49:19 -05:00
Update image_raw_importer.c
This commit is contained in:
@ -128,17 +128,17 @@ int main()
|
|||||||
// Select correct format depending on channels and bpp
|
// Select correct format depending on channels and bpp
|
||||||
if (bpp == 8)
|
if (bpp == 8)
|
||||||
{
|
{
|
||||||
if (channels == 1) format = UNCOMPRESSED_GRAYSCALE;
|
if (channels == 1) format = PIXELFORMAT_UNCOMPRESSED_GRAYSCALE;
|
||||||
else if (channels == 2) format = UNCOMPRESSED_GRAY_ALPHA;
|
else if (channels == 2) format = PIXELFORMAT_UNCOMPRESSED_GRAY_ALPHA;
|
||||||
else if (channels == 3) format = UNCOMPRESSED_R8G8B8;
|
else if (channels == 3) format = PIXELFORMAT_UNCOMPRESSED_R8G8B8;
|
||||||
else if (channels == 4) format = UNCOMPRESSED_R8G8B8A8;
|
else if (channels == 4) format = PIXELFORMAT_UNCOMPRESSED_R8G8B8A8;
|
||||||
}
|
}
|
||||||
else if (bpp == 32)
|
else if (bpp == 32)
|
||||||
{
|
{
|
||||||
if (channels == 1) format = UNCOMPRESSED_R32;
|
if (channels == 1) format = PIXELFORMAT_UNCOMPRESSED_R32;
|
||||||
else if (channels == 2) TraceLog(LOG_WARNING, "Channel bit-depth not supported!");
|
else if (channels == 2) TraceLog(LOG_WARNING, "Channel bit-depth not supported!");
|
||||||
else if (channels == 3) format = UNCOMPRESSED_R32G32B32;
|
else if (channels == 3) format = PIXELFORMAT_UNCOMPRESSED_R32G32B32;
|
||||||
else if (channels == 4) format = UNCOMPRESSED_R32G32B32A32;
|
else if (channels == 4) format = PIXELFORMAT_UNCOMPRESSED_R32G32B32A32;
|
||||||
}
|
}
|
||||||
else if (bpp == 16) TraceLog(LOG_WARNING, "Channel bit-depth not supported!");
|
else if (bpp == 16) TraceLog(LOG_WARNING, "Channel bit-depth not supported!");
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user