From 72af33452477d62dbabcee6d5cbcc9d33c76f3ee Mon Sep 17 00:00:00 2001 From: lazaray <104470294+lazaray@users.noreply.github.com> Date: Wed, 27 Apr 2022 01:45:36 +0200 Subject: [PATCH] Regenerate parser output --- parser/raylib_api.json | 41 ++++++++++++++++++++++++++++++++++------- parser/raylib_api.lua | 41 ++++++++++++++++++++++++++++++++++------- parser/raylib_api.txt | 37 ++++++++++++++++++++++++++++++------- parser/raylib_api.xml | 21 ++++++++++++++------- 4 files changed, 112 insertions(+), 28 deletions(-) diff --git a/parser/raylib_api.json b/parser/raylib_api.json index 5af28c50c..7ad165f09 100644 --- a/parser/raylib_api.json +++ b/parser/raylib_api.json @@ -907,6 +907,33 @@ ] } ], + "aliases": [ + { + "type": "Vector4", + "name": "Quaternion", + "description": "Quaternion, 4 components (Vector4 alias)" + }, + { + "type": "Texture", + "name": "Texture2D", + "description": "Texture2D, same as Texture" + }, + { + "type": "Texture", + "name": "TextureCubemap", + "description": "TextureCubemap, same as Texture" + }, + { + "type": "RenderTexture", + "name": "RenderTexture2D", + "description": "RenderTexture2D, same as RenderTexture" + }, + { + "type": "Camera3D", + "name": "Camera", + "description": "Camera type fallback, defaults to Camera3D" + } + ], "enums": [ { "name": "ConfigFlags", @@ -4101,11 +4128,11 @@ }, { "type": "int", - "name": "dataLength" + "name": "dataSize" }, { "type": "int *", - "name": "compDataLength" + "name": "compDataSize" } ] }, @@ -4120,11 +4147,11 @@ }, { "type": "int", - "name": "compDataLength" + "name": "compDataSize" }, { "type": "int *", - "name": "dataLength" + "name": "dataSize" } ] }, @@ -4139,11 +4166,11 @@ }, { "type": "int", - "name": "dataLength" + "name": "dataSize" }, { "type": "int *", - "name": "outputLength" + "name": "outputSize" } ] }, @@ -4158,7 +4185,7 @@ }, { "type": "int *", - "name": "outputLength" + "name": "outputSize" } ] }, diff --git a/parser/raylib_api.lua b/parser/raylib_api.lua index 00c129a38..c046b65c2 100644 --- a/parser/raylib_api.lua +++ b/parser/raylib_api.lua @@ -907,6 +907,33 @@ return { } } }, + aliases = { + { + type = "Vector4", + name = "Quaternion", + description = "Quaternion, 4 components (Vector4 alias)" + }, + { + type = "Texture", + name = "Texture2D", + description = "Texture2D, same as Texture" + }, + { + type = "Texture", + name = "TextureCubemap", + description = "TextureCubemap, same as Texture" + }, + { + type = "RenderTexture", + name = "RenderTexture2D", + description = "RenderTexture2D, same as RenderTexture" + }, + { + type = "Camera3D", + name = "Camera", + description = "Camera type fallback, defaults to Camera3D" + } + }, enums = { { name = "ConfigFlags", @@ -3736,8 +3763,8 @@ return { returnType = "unsigned char *", params = { {type = "const unsigned char *", name = "data"}, - {type = "int", name = "dataLength"}, - {type = "int *", name = "compDataLength"} + {type = "int", name = "dataSize"}, + {type = "int *", name = "compDataSize"} } }, { @@ -3746,8 +3773,8 @@ return { returnType = "unsigned char *", params = { {type = "const unsigned char *", name = "compData"}, - {type = "int", name = "compDataLength"}, - {type = "int *", name = "dataLength"} + {type = "int", name = "compDataSize"}, + {type = "int *", name = "dataSize"} } }, { @@ -3756,8 +3783,8 @@ return { returnType = "char *", params = { {type = "const unsigned char *", name = "data"}, - {type = "int", name = "dataLength"}, - {type = "int *", name = "outputLength"} + {type = "int", name = "dataSize"}, + {type = "int *", name = "outputSize"} } }, { @@ -3766,7 +3793,7 @@ return { returnType = "unsigned char *", params = { {type = "const unsigned char *", name = "data"}, - {type = "int *", name = "outputLength"} + {type = "int *", name = "outputSize"} } }, { diff --git a/parser/raylib_api.txt b/parser/raylib_api.txt index 78ec6bb93..26ecec5bf 100644 --- a/parser/raylib_api.txt +++ b/parser/raylib_api.txt @@ -239,6 +239,29 @@ Struct 31: VrStereoConfig (8 fields) Field[7]: float scale[2] // VR distortion scale Field[8]: float scaleIn[2] // VR distortion scale in +Aliases found: 5 + +Alias 001: Quaternion + Type: Vector4 + Name: Quaternion + Description: Quaternion, 4 components (Vector4 alias) +Alias 002: Texture2D + Type: Texture + Name: Texture2D + Description: Texture2D, same as Texture +Alias 003: TextureCubemap + Type: Texture + Name: TextureCubemap + Description: TextureCubemap, same as Texture +Alias 004: RenderTexture2D + Type: RenderTexture + Name: RenderTexture2D + Description: RenderTexture2D, same as RenderTexture +Alias 005: Camera + Type: Camera3D + Name: Camera + Description: Camera type fallback, defaults to Camera3D + Enums found: 21 Enum 01: ConfigFlags (14 values) @@ -1284,28 +1307,28 @@ Function 129: CompressData() (3 input parameters) Return type: unsigned char * Description: Compress data (DEFLATE algorithm) Param[1]: data (type: const unsigned char *) - Param[2]: dataLength (type: int) - Param[3]: compDataLength (type: int *) + Param[2]: dataSize (type: int) + Param[3]: compDataSize (type: int *) Function 130: DecompressData() (3 input parameters) Name: DecompressData Return type: unsigned char * Description: Decompress data (DEFLATE algorithm) Param[1]: compData (type: const unsigned char *) - Param[2]: compDataLength (type: int) - Param[3]: dataLength (type: int *) + Param[2]: compDataSize (type: int) + Param[3]: dataSize (type: int *) Function 131: EncodeDataBase64() (3 input parameters) Name: EncodeDataBase64 Return type: char * Description: Encode data to Base64 string Param[1]: data (type: const unsigned char *) - Param[2]: dataLength (type: int) - Param[3]: outputLength (type: int *) + Param[2]: dataSize (type: int) + Param[3]: outputSize (type: int *) Function 132: DecodeDataBase64() (2 input parameters) Name: DecodeDataBase64 Return type: unsigned char * Description: Decode Base64 string data Param[1]: data (type: const unsigned char *) - Param[2]: outputLength (type: int *) + Param[2]: outputSize (type: int *) Function 133: SaveStorageValue() (2 input parameters) Name: SaveStorageValue Return type: bool diff --git a/parser/raylib_api.xml b/parser/raylib_api.xml index 80e20939d..30beef478 100644 --- a/parser/raylib_api.xml +++ b/parser/raylib_api.xml @@ -208,6 +208,13 @@ + + + + + + + @@ -977,22 +984,22 @@ - - + + - - + + - - + + - +