2
0
Эх сурвалжийг харах

Update raylib_api.* by CI

github-actions[bot] 10 сар өмнө
parent
commit
d6399622a0

+ 22 - 22
parser/output/raylib_api.json

@@ -3763,8 +3763,8 @@
       ]
     },
     {
-      "name": "IsShaderReady",
-      "description": "Check if a shader is ready",
+      "name": "IsShaderValid",
+      "description": "Check if a shader is valid (loaded on GPU)",
       "returnType": "bool",
       "params": [
         {
@@ -6919,8 +6919,8 @@
       "returnType": "Image"
     },
     {
-      "name": "IsImageReady",
-      "description": "Check if an image is ready",
+      "name": "IsImageValid",
+      "description": "Check if an image is valid (data and parameters)",
       "returnType": "bool",
       "params": [
         {
@@ -8383,8 +8383,8 @@
       ]
     },
     {
-      "name": "IsTextureReady",
-      "description": "Check if a texture is ready",
+      "name": "IsTextureValid",
+      "description": "Check if a texture is valid (loaded in GPU)",
       "returnType": "bool",
       "params": [
         {
@@ -8405,8 +8405,8 @@
       ]
     },
     {
-      "name": "IsRenderTextureReady",
-      "description": "Check if a render texture is ready",
+      "name": "IsRenderTextureValid",
+      "description": "Check if a render texture is valid (loaded in GPU)",
       "returnType": "bool",
       "params": [
         {
@@ -9000,8 +9000,8 @@
       ]
     },
     {
-      "name": "IsFontReady",
-      "description": "Check if a font is ready",
+      "name": "IsFontValid",
+      "description": "Check if a font is valid (font data loaded, WARNING: GPU texture not checked)",
       "returnType": "bool",
       "params": [
         {
@@ -10292,8 +10292,8 @@
       ]
     },
     {
-      "name": "IsModelReady",
-      "description": "Check if a model is ready",
+      "name": "IsModelValid",
+      "description": "Check if a model is valid (loaded in GPU, VAO/VBOs)",
       "returnType": "bool",
       "params": [
         {
@@ -10979,8 +10979,8 @@
       "returnType": "Material"
     },
     {
-      "name": "IsMaterialReady",
-      "description": "Check if a material is ready",
+      "name": "IsMaterialValid",
+      "description": "Check if a material is valid (shader assigned, map textures loaded in GPU)",
       "returnType": "bool",
       "params": [
         {
@@ -11354,8 +11354,8 @@
       ]
     },
     {
-      "name": "IsWaveReady",
-      "description": "Checks if wave data is ready",
+      "name": "IsWaveValid",
+      "description": "Checks if wave data is valid (data loaded and parameters)",
       "returnType": "bool",
       "params": [
         {
@@ -11398,8 +11398,8 @@
       ]
     },
     {
-      "name": "IsSoundReady",
-      "description": "Checks if a sound is ready",
+      "name": "IsSoundValid",
+      "description": "Checks if a sound is valid (data loaded and buffers initialized)",
       "returnType": "bool",
       "params": [
         {
@@ -11696,8 +11696,8 @@
       ]
     },
     {
-      "name": "IsMusicReady",
-      "description": "Checks if a music stream is ready",
+      "name": "IsMusicValid",
+      "description": "Checks if a music stream is valid (context and buffers initialized)",
       "returnType": "bool",
       "params": [
         {
@@ -11885,8 +11885,8 @@
       ]
     },
     {
-      "name": "IsAudioStreamReady",
-      "description": "Checks if an audio stream is ready",
+      "name": "IsAudioStreamValid",
+      "description": "Checks if an audio stream is valid (buffers initialized)",
       "returnType": "bool",
       "params": [
         {

+ 22 - 22
parser/output/raylib_api.lua

@@ -3589,8 +3589,8 @@ return {
       }
     },
     {
-      name = "IsShaderReady",
-      description = "Check if a shader is ready",
+      name = "IsShaderValid",
+      description = "Check if a shader is valid (loaded on GPU)",
       returnType = "bool",
       params = {
         {type = "Shader", name = "shader"}
@@ -5401,8 +5401,8 @@ return {
       returnType = "Image"
     },
     {
-      name = "IsImageReady",
-      description = "Check if an image is ready",
+      name = "IsImageValid",
+      description = "Check if an image is valid (data and parameters)",
       returnType = "bool",
       params = {
         {type = "Image", name = "image"}
@@ -6166,8 +6166,8 @@ return {
       }
     },
     {
-      name = "IsTextureReady",
-      description = "Check if a texture is ready",
+      name = "IsTextureValid",
+      description = "Check if a texture is valid (loaded in GPU)",
       returnType = "bool",
       params = {
         {type = "Texture2D", name = "texture"}
@@ -6182,8 +6182,8 @@ return {
       }
     },
     {
-      name = "IsRenderTextureReady",
-      description = "Check if a render texture is ready",
+      name = "IsRenderTextureValid",
+      description = "Check if a render texture is valid (loaded in GPU)",
       returnType = "bool",
       params = {
         {type = "RenderTexture2D", name = "target"}
@@ -6513,8 +6513,8 @@ return {
       }
     },
     {
-      name = "IsFontReady",
-      description = "Check if a font is ready",
+      name = "IsFontValid",
+      description = "Check if a font is valid (font data loaded, WARNING: GPU texture not checked)",
       returnType = "bool",
       params = {
         {type = "Font", name = "font"}
@@ -7193,8 +7193,8 @@ return {
       }
     },
     {
-      name = "IsModelReady",
-      description = "Check if a model is ready",
+      name = "IsModelValid",
+      description = "Check if a model is valid (loaded in GPU, VAO/VBOs)",
       returnType = "bool",
       params = {
         {type = "Model", name = "model"}
@@ -7547,8 +7547,8 @@ return {
       returnType = "Material"
     },
     {
-      name = "IsMaterialReady",
-      description = "Check if a material is ready",
+      name = "IsMaterialValid",
+      description = "Check if a material is valid (shader assigned, map textures loaded in GPU)",
       returnType = "bool",
       params = {
         {type = "Material", name = "material"}
@@ -7766,8 +7766,8 @@ return {
       }
     },
     {
-      name = "IsWaveReady",
-      description = "Checks if wave data is ready",
+      name = "IsWaveValid",
+      description = "Checks if wave data is valid (data loaded and parameters)",
       returnType = "bool",
       params = {
         {type = "Wave", name = "wave"}
@@ -7798,8 +7798,8 @@ return {
       }
     },
     {
-      name = "IsSoundReady",
-      description = "Checks if a sound is ready",
+      name = "IsSoundValid",
+      description = "Checks if a sound is valid (data loaded and buffers initialized)",
       returnType = "bool",
       params = {
         {type = "Sound", name = "sound"}
@@ -7988,8 +7988,8 @@ return {
       }
     },
     {
-      name = "IsMusicReady",
-      description = "Checks if a music stream is ready",
+      name = "IsMusicValid",
+      description = "Checks if a music stream is valid (context and buffers initialized)",
       returnType = "bool",
       params = {
         {type = "Music", name = "music"}
@@ -8114,8 +8114,8 @@ return {
       }
     },
     {
-      name = "IsAudioStreamReady",
-      description = "Checks if an audio stream is ready",
+      name = "IsAudioStreamValid",
+      description = "Checks if an audio stream is valid (buffers initialized)",
       returnType = "bool",
       params = {
         {type = "AudioStream", name = "stream"}

+ 33 - 33
parser/output/raylib_api.txt

@@ -1378,10 +1378,10 @@ Function 075: LoadShaderFromMemory() (2 input parameters)
   Description: Load shader from code strings and bind default locations
   Param[1]: vsCode (type: const char *)
   Param[2]: fsCode (type: const char *)
-Function 076: IsShaderReady() (1 input parameters)
-  Name: IsShaderReady
+Function 076: IsShaderValid() (1 input parameters)
+  Name: IsShaderValid
   Return type: bool
-  Description: Check if a shader is ready
+  Description: Check if a shader is valid (loaded on GPU)
   Param[1]: shader (type: Shader)
 Function 077: GetShaderLocation() (2 input parameters)
   Name: GetShaderLocation
@@ -2674,10 +2674,10 @@ Function 279: LoadImageFromScreen() (0 input parameters)
   Return type: Image
   Description: Load image from screen buffer and (screenshot)
   No input parameters
-Function 280: IsImageReady() (1 input parameters)
-  Name: IsImageReady
+Function 280: IsImageValid() (1 input parameters)
+  Name: IsImageValid
   Return type: bool
-  Description: Check if an image is ready
+  Description: Check if an image is valid (data and parameters)
   Param[1]: image (type: Image)
 Function 281: UnloadImage() (1 input parameters)
   Name: UnloadImage
@@ -3211,20 +3211,20 @@ Function 355: LoadRenderTexture() (2 input parameters)
   Description: Load texture for rendering (framebuffer)
   Param[1]: width (type: int)
   Param[2]: height (type: int)
-Function 356: IsTextureReady() (1 input parameters)
-  Name: IsTextureReady
+Function 356: IsTextureValid() (1 input parameters)
+  Name: IsTextureValid
   Return type: bool
-  Description: Check if a texture is ready
+  Description: Check if a texture is valid (loaded in GPU)
   Param[1]: texture (type: Texture2D)
 Function 357: UnloadTexture() (1 input parameters)
   Name: UnloadTexture
   Return type: void
   Description: Unload texture from GPU memory (VRAM)
   Param[1]: texture (type: Texture2D)
-Function 358: IsRenderTextureReady() (1 input parameters)
-  Name: IsRenderTextureReady
+Function 358: IsRenderTextureValid() (1 input parameters)
+  Name: IsRenderTextureValid
   Return type: bool
-  Description: Check if a render texture is ready
+  Description: Check if a render texture is valid (loaded in GPU)
   Param[1]: target (type: RenderTexture2D)
 Function 359: UnloadRenderTexture() (1 input parameters)
   Name: UnloadRenderTexture
@@ -3450,10 +3450,10 @@ Function 392: LoadFontFromMemory() (6 input parameters)
   Param[4]: fontSize (type: int)
   Param[5]: codepoints (type: int *)
   Param[6]: codepointCount (type: int)
-Function 393: IsFontReady() (1 input parameters)
-  Name: IsFontReady
+Function 393: IsFontValid() (1 input parameters)
+  Name: IsFontValid
   Return type: bool
-  Description: Check if a font is ready
+  Description: Check if a font is valid (font data loaded, WARNING: GPU texture not checked)
   Param[1]: font (type: Font)
 Function 394: LoadFontData() (6 input parameters)
   Name: LoadFontData
@@ -3926,10 +3926,10 @@ Function 460: LoadModelFromMesh() (1 input parameters)
   Return type: Model
   Description: Load model from generated mesh (default material)
   Param[1]: mesh (type: Mesh)
-Function 461: IsModelReady() (1 input parameters)
-  Name: IsModelReady
+Function 461: IsModelValid() (1 input parameters)
+  Name: IsModelValid
   Return type: bool
-  Description: Check if a model is ready
+  Description: Check if a model is valid (loaded in GPU, VAO/VBOs)
   Param[1]: model (type: Model)
 Function 462: UnloadModel() (1 input parameters)
   Name: UnloadModel
@@ -4178,10 +4178,10 @@ Function 495: LoadMaterialDefault() (0 input parameters)
   Return type: Material
   Description: Load default material (Supports: DIFFUSE, SPECULAR, NORMAL maps)
   No input parameters
-Function 496: IsMaterialReady() (1 input parameters)
-  Name: IsMaterialReady
+Function 496: IsMaterialValid() (1 input parameters)
+  Name: IsMaterialValid
   Return type: bool
-  Description: Check if a material is ready
+  Description: Check if a material is valid (shader assigned, map textures loaded in GPU)
   Param[1]: material (type: Material)
 Function 497: UnloadMaterial() (1 input parameters)
   Name: UnloadMaterial
@@ -4334,10 +4334,10 @@ Function 520: LoadWaveFromMemory() (3 input parameters)
   Param[1]: fileType (type: const char *)
   Param[2]: fileData (type: const unsigned char *)
   Param[3]: dataSize (type: int)
-Function 521: IsWaveReady() (1 input parameters)
-  Name: IsWaveReady
+Function 521: IsWaveValid() (1 input parameters)
+  Name: IsWaveValid
   Return type: bool
-  Description: Checks if wave data is ready
+  Description: Checks if wave data is valid (data loaded and parameters)
   Param[1]: wave (type: Wave)
 Function 522: LoadSound() (1 input parameters)
   Name: LoadSound
@@ -4354,10 +4354,10 @@ Function 524: LoadSoundAlias() (1 input parameters)
   Return type: Sound
   Description: Create a new sound that shares the same sample data as the source sound, does not own the sound data
   Param[1]: source (type: Sound)
-Function 525: IsSoundReady() (1 input parameters)
-  Name: IsSoundReady
+Function 525: IsSoundValid() (1 input parameters)
+  Name: IsSoundValid
   Return type: bool
-  Description: Checks if a sound is ready
+  Description: Checks if a sound is valid (data loaded and buffers initialized)
   Param[1]: sound (type: Sound)
 Function 526: UpdateSound() (3 input parameters)
   Name: UpdateSound
@@ -4478,10 +4478,10 @@ Function 546: LoadMusicStreamFromMemory() (3 input parameters)
   Param[1]: fileType (type: const char *)
   Param[2]: data (type: const unsigned char *)
   Param[3]: dataSize (type: int)
-Function 547: IsMusicReady() (1 input parameters)
-  Name: IsMusicReady
+Function 547: IsMusicValid() (1 input parameters)
+  Name: IsMusicValid
   Return type: bool
-  Description: Checks if a music stream is ready
+  Description: Checks if a music stream is valid (context and buffers initialized)
   Param[1]: music (type: Music)
 Function 548: UnloadMusicStream() (1 input parameters)
   Name: UnloadMusicStream
@@ -4559,10 +4559,10 @@ Function 561: LoadAudioStream() (3 input parameters)
   Param[1]: sampleRate (type: unsigned int)
   Param[2]: sampleSize (type: unsigned int)
   Param[3]: channels (type: unsigned int)
-Function 562: IsAudioStreamReady() (1 input parameters)
-  Name: IsAudioStreamReady
+Function 562: IsAudioStreamValid() (1 input parameters)
+  Name: IsAudioStreamValid
   Return type: bool
-  Description: Checks if an audio stream is ready
+  Description: Checks if an audio stream is valid (buffers initialized)
   Param[1]: stream (type: AudioStream)
 Function 563: UnloadAudioStream() (1 input parameters)
   Name: UnloadAudioStream

+ 11 - 11
parser/output/raylib_api.xml

@@ -871,7 +871,7 @@
             <Param type="const char *" name="vsCode" desc="" />
             <Param type="const char *" name="fsCode" desc="" />
         </Function>
-        <Function name="IsShaderReady" retType="bool" paramCount="1" desc="Check if a shader is ready">
+        <Function name="IsShaderValid" retType="bool" paramCount="1" desc="Check if a shader is valid (loaded on GPU)">
             <Param type="Shader" name="shader" desc="" />
         </Function>
         <Function name="GetShaderLocation" retType="int" paramCount="2" desc="Get shader uniform location">
@@ -1727,7 +1727,7 @@
         </Function>
         <Function name="LoadImageFromScreen" retType="Image" paramCount="0" desc="Load image from screen buffer and (screenshot)">
         </Function>
-        <Function name="IsImageReady" retType="bool" paramCount="1" desc="Check if an image is ready">
+        <Function name="IsImageValid" retType="bool" paramCount="1" desc="Check if an image is valid (data and parameters)">
             <Param type="Image" name="image" desc="" />
         </Function>
         <Function name="UnloadImage" retType="void" paramCount="1" desc="Unload image from CPU memory (RAM)">
@@ -2112,13 +2112,13 @@
             <Param type="int" name="width" desc="" />
             <Param type="int" name="height" desc="" />
         </Function>
-        <Function name="IsTextureReady" retType="bool" paramCount="1" desc="Check if a texture is ready">
+        <Function name="IsTextureValid" retType="bool" paramCount="1" desc="Check if a texture is valid (loaded in GPU)">
             <Param type="Texture2D" name="texture" desc="" />
         </Function>
         <Function name="UnloadTexture" retType="void" paramCount="1" desc="Unload texture from GPU memory (VRAM)">
             <Param type="Texture2D" name="texture" desc="" />
         </Function>
-        <Function name="IsRenderTextureReady" retType="bool" paramCount="1" desc="Check if a render texture is ready">
+        <Function name="IsRenderTextureValid" retType="bool" paramCount="1" desc="Check if a render texture is valid (loaded in GPU)">
             <Param type="RenderTexture2D" name="target" desc="" />
         </Function>
         <Function name="UnloadRenderTexture" retType="void" paramCount="1" desc="Unload render texture from GPU memory (VRAM)">
@@ -2276,7 +2276,7 @@
             <Param type="int *" name="codepoints" desc="" />
             <Param type="int" name="codepointCount" desc="" />
         </Function>
-        <Function name="IsFontReady" retType="bool" paramCount="1" desc="Check if a font is ready">
+        <Function name="IsFontValid" retType="bool" paramCount="1" desc="Check if a font is valid (font data loaded, WARNING: GPU texture not checked)">
             <Param type="Font" name="font" desc="" />
         </Function>
         <Function name="LoadFontData" retType="GlyphInfo *" paramCount="6" desc="Load font data for further use">
@@ -2616,7 +2616,7 @@
         <Function name="LoadModelFromMesh" retType="Model" paramCount="1" desc="Load model from generated mesh (default material)">
             <Param type="Mesh" name="mesh" desc="" />
         </Function>
-        <Function name="IsModelReady" retType="bool" paramCount="1" desc="Check if a model is ready">
+        <Function name="IsModelValid" retType="bool" paramCount="1" desc="Check if a model is valid (loaded in GPU, VAO/VBOs)">
             <Param type="Model" name="model" desc="" />
         </Function>
         <Function name="UnloadModel" retType="void" paramCount="1" desc="Unload model (including meshes) from memory (RAM and/or VRAM)">
@@ -2797,7 +2797,7 @@
         </Function>
         <Function name="LoadMaterialDefault" retType="Material" paramCount="0" desc="Load default material (Supports: DIFFUSE, SPECULAR, NORMAL maps)">
         </Function>
-        <Function name="IsMaterialReady" retType="bool" paramCount="1" desc="Check if a material is ready">
+        <Function name="IsMaterialValid" retType="bool" paramCount="1" desc="Check if a material is valid (shader assigned, map textures loaded in GPU)">
             <Param type="Material" name="material" desc="" />
         </Function>
         <Function name="UnloadMaterial" retType="void" paramCount="1" desc="Unload material from GPU memory (VRAM)">
@@ -2899,7 +2899,7 @@
             <Param type="const unsigned char *" name="fileData" desc="" />
             <Param type="int" name="dataSize" desc="" />
         </Function>
-        <Function name="IsWaveReady" retType="bool" paramCount="1" desc="Checks if wave data is ready">
+        <Function name="IsWaveValid" retType="bool" paramCount="1" desc="Checks if wave data is valid (data loaded and parameters)">
             <Param type="Wave" name="wave" desc="" />
         </Function>
         <Function name="LoadSound" retType="Sound" paramCount="1" desc="Load sound from file">
@@ -2911,7 +2911,7 @@
         <Function name="LoadSoundAlias" retType="Sound" paramCount="1" desc="Create a new sound that shares the same sample data as the source sound, does not own the sound data">
             <Param type="Sound" name="source" desc="" />
         </Function>
-        <Function name="IsSoundReady" retType="bool" paramCount="1" desc="Checks if a sound is ready">
+        <Function name="IsSoundValid" retType="bool" paramCount="1" desc="Checks if a sound is valid (data loaded and buffers initialized)">
             <Param type="Sound" name="sound" desc="" />
         </Function>
         <Function name="UpdateSound" retType="void" paramCount="3" desc="Update sound buffer with new data">
@@ -2991,7 +2991,7 @@
             <Param type="const unsigned char *" name="data" desc="" />
             <Param type="int" name="dataSize" desc="" />
         </Function>
-        <Function name="IsMusicReady" retType="bool" paramCount="1" desc="Checks if a music stream is ready">
+        <Function name="IsMusicValid" retType="bool" paramCount="1" desc="Checks if a music stream is valid (context and buffers initialized)">
             <Param type="Music" name="music" desc="" />
         </Function>
         <Function name="UnloadMusicStream" retType="void" paramCount="1" desc="Unload music stream">
@@ -3042,7 +3042,7 @@
             <Param type="unsigned int" name="sampleSize" desc="" />
             <Param type="unsigned int" name="channels" desc="" />
         </Function>
-        <Function name="IsAudioStreamReady" retType="bool" paramCount="1" desc="Checks if an audio stream is ready">
+        <Function name="IsAudioStreamValid" retType="bool" paramCount="1" desc="Checks if an audio stream is valid (buffers initialized)">
             <Param type="AudioStream" name="stream" desc="" />
         </Function>
         <Function name="UnloadAudioStream" retType="void" paramCount="1" desc="Unload audio stream and free memory">