Add aliases to parser (#2444)

* Fix parser indentation

* Fix  parser comments

* Add aliases to parser

* Regenerate parser output

* Fix parser handling of multiple fields on one line

* Regenerate parser output

* Fix parser code style
This commit is contained in:
lazaray 2022-05-01 12:34:15 +02:00 committed by GitHub
parent 666aa44a84
commit 6f044c57ac
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 531 additions and 92 deletions

View file

@ -19,13 +19,25 @@ Struct 03: Vector4 (4 fields)
Field[2]: float y // Vector y component
Field[3]: float z // Vector z component
Field[4]: float w // Vector w component
Struct 04: Matrix (4 fields)
Struct 04: Matrix (16 fields)
Name: Matrix
Description: Matrix, 4x4 components, column major, OpenGL style, right handed
Field[1]: float m0, m4, m8, m12 // Matrix first row (4 components)
Field[2]: float m1, m5, m9, m13 // Matrix second row (4 components)
Field[3]: float m2, m6, m10, m14 // Matrix third row (4 components)
Field[4]: float m3, m7, m11, m15 // Matrix fourth row (4 components)
Field[1]: float m0 // Matrix first row (4 components)
Field[2]: float m4 // Matrix first row (4 components)
Field[3]: float m8 // Matrix first row (4 components)
Field[4]: float m12 // Matrix first row (4 components)
Field[5]: float m1 // Matrix second row (4 components)
Field[6]: float m5 // Matrix second row (4 components)
Field[7]: float m9 // Matrix second row (4 components)
Field[8]: float m13 // Matrix second row (4 components)
Field[9]: float m2 // Matrix third row (4 components)
Field[10]: float m6 // Matrix third row (4 components)
Field[11]: float m10 // Matrix third row (4 components)
Field[12]: float m14 // Matrix third row (4 components)
Field[13]: float m3 // Matrix fourth row (4 components)
Field[14]: float m7 // Matrix fourth row (4 components)
Field[15]: float m11 // Matrix fourth row (4 components)
Field[16]: float m15 // Matrix fourth row (4 components)
Struct 05: Color (4 fields)
Name: Color
Description: Color, 4 components, R8G8B8A8 (32bit)
@ -239,6 +251,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 +1319,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