ADDED: IsShaderReady(), IsImageReady(), IsFontReady(), IsWaveReady(), IsSoundReady(), IsMusicReady() (#2892)

These IsReady() functions provide a method in order to verify whether or not the object was loaded successfully. They're useful to make sure the assets are there prior to using them.
This commit is contained in:
Rob Loach 2023-01-27 13:24:03 -05:00 • committed by GitHub
commit 83ff7b2466
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -502,6 +502,12 @@ Image LoadImageFromScreen(void)
return image;
}
// Check if an image is ready
bool IsImageReady(Image image)
{
return image.data != NULL;
}
// Unload image from CPU memory (RAM)
void UnloadImage(Image image)
{