Add aliases for Is*Ready -> Is*Valid

This commit is contained in:
Jeroen van Rijn
2024-11-25 20:18:53 +01:00
parent 7c3ce334d6
commit d315d357ca
+15 -1
View File
@@ -365,7 +365,7 @@ ModelAnimation :: struct {
frameCount: c.int, // Number of animation frames frameCount: c.int, // Number of animation frames
bones: [^]BoneInfo, // Bones information (skeleton) bones: [^]BoneInfo, // Bones information (skeleton)
framePoses: [^][^]Transform, // Poses array by frame framePoses: [^][^]Transform, // Poses array by frame
name: [32]byte, // Animation name name: [32]byte `fmt:"s,0"`, // Animation name
} }
// Ray type (useful for raycast) // Ray type (useful for raycast)
@@ -1766,3 +1766,17 @@ MemAllocatorProc :: proc(allocator_data: rawptr, mode: mem.Allocator_Mode,
} }
return nil, .Mode_Not_Implemented return nil, .Mode_Not_Implemented
} }
// RayLib 5.5 renamed Is*Ready to Is*Valid.
// See: https://github.com/raysan5/raylib/commit/8cbf34ddc495e2bca42245f786915c27210b0507
IsImageReady :: IsImageValid
IsTextureReady :: IsTextureValid
IsRenderTextureReady :: IsRenderTextureValid
IsFontReady :: IsFontValid
IsModelReady :: IsModelValid
IsMaterialReady :: IsMaterialValid
IsWaveReady :: IsWaveValid
IsSoundReady :: IsSoundValid
IsMusicReady :: IsMusicValid
IsAudioStreamReady :: IsAudioStreamValid
IsShaderReady :: IsShaderValid