Refactor: rename Is*Ready() to Is*Valid()

This commit is contained in:
RenzoRomeo 2024-04-28 18:49:48 -03:00
commit c14082d6da
4 changed files with 122 additions and 122 deletions

View file

@ -3146,7 +3146,7 @@
"returnType": "bool"
},
{
"name": "IsWindowReady",
"name": "IsWindowValid",
"description": "Check if window has been initialized successfully",
"returnType": "bool"
},
@ -3738,7 +3738,7 @@
]
},
{
"name": "IsShaderReady",
"name": "IsShaderValid",
"description": "Check if a shader is ready",
"returnType": "bool",
"params": [
@ -6838,7 +6838,7 @@
"returnType": "Image"
},
{
"name": "IsImageReady",
"name": "IsImageValid",
"description": "Check if an image is ready",
"returnType": "bool",
"params": [
@ -8125,7 +8125,7 @@
]
},
{
"name": "IsTextureReady",
"name": "IsTextureValid",
"description": "Check if a texture is ready",
"returnType": "bool",
"params": [
@ -8147,7 +8147,7 @@
]
},
{
"name": "IsRenderTextureReady",
"name": "IsRenderTextureValid",
"description": "Check if a render texture is ready",
"returnType": "bool",
"params": [
@ -8723,7 +8723,7 @@
]
},
{
"name": "IsFontReady",
"name": "IsFontValid",
"description": "Check if a font is ready",
"returnType": "bool",
"params": [
@ -9993,7 +9993,7 @@
]
},
{
"name": "IsModelReady",
"name": "IsModelValid",
"description": "Check if a model is ready",
"returnType": "bool",
"params": [
@ -10626,7 +10626,7 @@
"returnType": "Material"
},
{
"name": "IsMaterialReady",
"name": "IsMaterialValid",
"description": "Check if a material is ready",
"returnType": "bool",
"params": [
@ -10931,7 +10931,7 @@
"returnType": "void"
},
{
"name": "IsAudioDeviceReady",
"name": "IsAudioDeviceValid",
"description": "Check if audio device has been initialized successfully",
"returnType": "bool"
},
@ -10982,7 +10982,7 @@
]
},
{
"name": "IsWaveReady",
"name": "IsWaveValid",
"description": "Checks if wave data is ready",
"returnType": "bool",
"params": [
@ -11026,7 +11026,7 @@
]
},
{
"name": "IsSoundReady",
"name": "IsSoundValid",
"description": "Checks if a sound is ready",
"returnType": "bool",
"params": [
@ -11324,7 +11324,7 @@
]
},
{
"name": "IsMusicReady",
"name": "IsMusicValid",
"description": "Checks if a music stream is ready",
"returnType": "bool",
"params": [
@ -11513,7 +11513,7 @@
]
},
{
"name": "IsAudioStreamReady",
"name": "IsAudioStreamValid",
"description": "Checks if an audio stream is ready",
"returnType": "bool",
"params": [

View file

@ -3098,7 +3098,7 @@ return {
returnType = "bool"
},
{
name = "IsWindowReady",
name = "IsWindowValid",
description = "Check if window has been initialized successfully",
returnType = "bool"
},
@ -3564,7 +3564,7 @@ return {
}
},
{
name = "IsShaderReady",
name = "IsShaderValid",
description = "Check if a shader is ready",
returnType = "bool",
params = {
@ -5341,7 +5341,7 @@ return {
returnType = "Image"
},
{
name = "IsImageReady",
name = "IsImageValid",
description = "Check if an image is ready",
returnType = "bool",
params = {
@ -6025,7 +6025,7 @@ return {
}
},
{
name = "IsTextureReady",
name = "IsTextureValid",
description = "Check if a texture is ready",
returnType = "bool",
params = {
@ -6041,7 +6041,7 @@ return {
}
},
{
name = "IsRenderTextureReady",
name = "IsRenderTextureValid",
description = "Check if a render texture is ready",
returnType = "bool",
params = {
@ -6362,7 +6362,7 @@ return {
}
},
{
name = "IsFontReady",
name = "IsFontValid",
description = "Check if a font is ready",
returnType = "bool",
params = {
@ -7026,7 +7026,7 @@ return {
}
},
{
name = "IsModelReady",
name = "IsModelValid",
description = "Check if a model is ready",
returnType = "bool",
params = {
@ -7356,7 +7356,7 @@ return {
returnType = "Material"
},
{
name = "IsMaterialReady",
name = "IsMaterialValid",
description = "Check if a material is ready",
returnType = "bool",
params = {
@ -7529,7 +7529,7 @@ return {
returnType = "void"
},
{
name = "IsAudioDeviceReady",
name = "IsAudioDeviceValid",
description = "Check if audio device has been initialized successfully",
returnType = "bool"
},
@ -7565,7 +7565,7 @@ return {
}
},
{
name = "IsWaveReady",
name = "IsWaveValid",
description = "Checks if wave data is ready",
returnType = "bool",
params = {
@ -7597,7 +7597,7 @@ return {
}
},
{
name = "IsSoundReady",
name = "IsSoundValid",
description = "Checks if a sound is ready",
returnType = "bool",
params = {
@ -7787,7 +7787,7 @@ return {
}
},
{
name = "IsMusicReady",
name = "IsMusicValid",
description = "Checks if a music stream is ready",
returnType = "bool",
params = {
@ -7913,7 +7913,7 @@ return {
}
},
{
name = "IsAudioStreamReady",
name = "IsAudioStreamValid",
description = "Checks if an audio stream is ready",
returnType = "bool",
params = {

View file

@ -1003,8 +1003,8 @@ Function 003: WindowShouldClose() (0 input parameters)
Return type: bool
Description: Check if application should close (KEY_ESCAPE pressed or windows close icon clicked)
No input parameters
Function 004: IsWindowReady() (0 input parameters)
Name: IsWindowReady
Function 004: IsWindowValid() (0 input parameters)
Name: IsWindowValid
Return type: bool
Description: Check if window has been initialized successfully
No input parameters
@ -1373,8 +1373,8 @@ 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
Param[1]: shader (type: Shader)
@ -2646,8 +2646,8 @@ Function 275: LoadImageFromScreen() (0 input parameters)
Return type: Image
Description: Load image from screen buffer and (screenshot)
No input parameters
Function 276: IsImageReady() (1 input parameters)
Name: IsImageReady
Function 276: IsImageValid() (1 input parameters)
Name: IsImageValid
Return type: bool
Description: Check if an image is ready
Param[1]: image (type: Image)
@ -3123,8 +3123,8 @@ Function 344: LoadRenderTexture() (2 input parameters)
Description: Load texture for rendering (framebuffer)
Param[1]: width (type: int)
Param[2]: height (type: int)
Function 345: IsTextureReady() (1 input parameters)
Name: IsTextureReady
Function 345: IsTextureValid() (1 input parameters)
Name: IsTextureValid
Return type: bool
Description: Check if a texture is ready
Param[1]: texture (type: Texture2D)
@ -3133,8 +3133,8 @@ Function 346: UnloadTexture() (1 input parameters)
Return type: void
Description: Unload texture from GPU memory (VRAM)
Param[1]: texture (type: Texture2D)
Function 347: IsRenderTextureReady() (1 input parameters)
Name: IsRenderTextureReady
Function 347: IsRenderTextureValid() (1 input parameters)
Name: IsRenderTextureValid
Return type: bool
Description: Check if a render texture is ready
Param[1]: target (type: RenderTexture2D)
@ -3355,8 +3355,8 @@ Function 380: LoadFontFromMemory() (6 input parameters)
Param[4]: fontSize (type: int)
Param[5]: codepoints (type: int *)
Param[6]: codepointCount (type: int)
Function 381: IsFontReady() (1 input parameters)
Name: IsFontReady
Function 381: IsFontValid() (1 input parameters)
Name: IsFontValid
Return type: bool
Description: Check if a font is ready
Param[1]: font (type: Font)
@ -3821,8 +3821,8 @@ Function 446: LoadModelFromMesh() (1 input parameters)
Return type: Model
Description: Load model from generated mesh (default material)
Param[1]: mesh (type: Mesh)
Function 447: IsModelReady() (1 input parameters)
Name: IsModelReady
Function 447: IsModelValid() (1 input parameters)
Name: IsModelValid
Return type: bool
Description: Check if a model is ready
Param[1]: model (type: Model)
@ -4055,8 +4055,8 @@ Function 479: LoadMaterialDefault() (0 input parameters)
Return type: Material
Description: Load default material (Supports: DIFFUSE, SPECULAR, NORMAL maps)
No input parameters
Function 480: IsMaterialReady() (1 input parameters)
Name: IsMaterialReady
Function 480: IsMaterialValid() (1 input parameters)
Name: IsMaterialValid
Return type: bool
Description: Check if a material is ready
Param[1]: material (type: Material)
@ -4177,8 +4177,8 @@ Function 498: CloseAudioDevice() (0 input parameters)
Return type: void
Description: Close the audio device and context
No input parameters
Function 499: IsAudioDeviceReady() (0 input parameters)
Name: IsAudioDeviceReady
Function 499: IsAudioDeviceValid() (0 input parameters)
Name: IsAudioDeviceValid
Return type: bool
Description: Check if audio device has been initialized successfully
No input parameters
@ -4204,8 +4204,8 @@ Function 503: LoadWaveFromMemory() (3 input parameters)
Param[1]: fileType (type: const char *)
Param[2]: fileData (type: const unsigned char *)
Param[3]: dataSize (type: int)
Function 504: IsWaveReady() (1 input parameters)
Name: IsWaveReady
Function 504: IsWaveValid() (1 input parameters)
Name: IsWaveValid
Return type: bool
Description: Checks if wave data is ready
Param[1]: wave (type: Wave)
@ -4224,8 +4224,8 @@ Function 507: 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 508: IsSoundReady() (1 input parameters)
Name: IsSoundReady
Function 508: IsSoundValid() (1 input parameters)
Name: IsSoundValid
Return type: bool
Description: Checks if a sound is ready
Param[1]: sound (type: Sound)
@ -4348,8 +4348,8 @@ Function 529: LoadMusicStreamFromMemory() (3 input parameters)
Param[1]: fileType (type: const char *)
Param[2]: data (type: const unsigned char *)
Param[3]: dataSize (type: int)
Function 530: IsMusicReady() (1 input parameters)
Name: IsMusicReady
Function 530: IsMusicValid() (1 input parameters)
Name: IsMusicValid
Return type: bool
Description: Checks if a music stream is ready
Param[1]: music (type: Music)
@ -4429,8 +4429,8 @@ Function 544: LoadAudioStream() (3 input parameters)
Param[1]: sampleRate (type: unsigned int)
Param[2]: sampleSize (type: unsigned int)
Param[3]: channels (type: unsigned int)
Function 545: IsAudioStreamReady() (1 input parameters)
Name: IsAudioStreamReady
Function 545: IsAudioStreamValid() (1 input parameters)
Name: IsAudioStreamValid
Return type: bool
Description: Checks if an audio stream is ready
Param[1]: stream (type: AudioStream)

View file

@ -680,7 +680,7 @@
</Function>
<Function name="WindowShouldClose" retType="bool" paramCount="0" desc="Check if application should close (KEY_ESCAPE pressed or windows close icon clicked)">
</Function>
<Function name="IsWindowReady" retType="bool" paramCount="0" desc="Check if window has been initialized successfully">
<Function name="IsWindowValid" retType="bool" paramCount="0" desc="Check if window has been initialized successfully">
</Function>
<Function name="IsWindowFullscreen" retType="bool" paramCount="0" desc="Check if window is currently fullscreen">
</Function>
@ -866,7 +866,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 ready">
<Param type="Shader" name="shader" desc="" />
</Function>
<Function name="GetShaderLocation" retType="int" paramCount="2" desc="Get shader uniform location">
@ -1707,7 +1707,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 ready">
<Param type="Image" name="image" desc="" />
</Function>
<Function name="UnloadImage" retType="void" paramCount="1" desc="Unload image from CPU memory (RAM)">
@ -2046,13 +2046,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 ready">
<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 ready">
<Param type="RenderTexture2D" name="target" desc="" />
</Function>
<Function name="UnloadRenderTexture" retType="void" paramCount="1" desc="Unload render texture from GPU memory (VRAM)">
@ -2205,7 +2205,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 ready">
<Param type="Font" name="font" desc="" />
</Function>
<Function name="LoadFontData" retType="GlyphInfo *" paramCount="6" desc="Load font data for further use">
@ -2539,7 +2539,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 ready">
<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)">
@ -2706,7 +2706,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 ready">
<Param type="Material" name="material" desc="" />
</Function>
<Function name="UnloadMaterial" retType="void" paramCount="1" desc="Unload material from GPU memory (VRAM)">
@ -2788,7 +2788,7 @@
</Function>
<Function name="CloseAudioDevice" retType="void" paramCount="0" desc="Close the audio device and context">
</Function>
<Function name="IsAudioDeviceReady" retType="bool" paramCount="0" desc="Check if audio device has been initialized successfully">
<Function name="IsAudioDeviceValid" retType="bool" paramCount="0" desc="Check if audio device has been initialized successfully">
</Function>
<Function name="SetMasterVolume" retType="void" paramCount="1" desc="Set master volume (listener)">
<Param type="float" name="volume" desc="" />
@ -2803,7 +2803,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 ready">
<Param type="Wave" name="wave" desc="" />
</Function>
<Function name="LoadSound" retType="Sound" paramCount="1" desc="Load sound from file">
@ -2815,7 +2815,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 ready">
<Param type="Sound" name="sound" desc="" />
</Function>
<Function name="UpdateSound" retType="void" paramCount="3" desc="Update sound buffer with new data">
@ -2895,7 +2895,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 ready">
<Param type="Music" name="music" desc="" />
</Function>
<Function name="UnloadMusicStream" retType="void" paramCount="1" desc="Unload music stream">
@ -2946,7 +2946,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 ready">
<Param type="AudioStream" name="stream" desc="" />
</Function>
<Function name="UnloadAudioStream" retType="void" paramCount="1" desc="Unload audio stream and free memory">