mirror of
https://github.com/raysan5/raylib.git
synced 2025-10-03 16:36:26 +00:00
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:
@@ -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)
|
||||
{
|
||||
|
Reference in New Issue
Block a user