From d6d05c38a72f70572b3db1e1072d7d9d969bec2c Mon Sep 17 00:00:00 2001 From: lazaray <104470294+lazaray@users.noreply.github.com> Date: Fri, 29 Apr 2022 10:19:07 +0200 Subject: [PATCH] Regenerate parser output --- parser/raylib_api.json | 68 +++++++++++++++++++++++++++++++++++++++--- parser/raylib_api.lua | 68 +++++++++++++++++++++++++++++++++++++++--- parser/raylib_api.txt | 22 ++++++++++---- parser/raylib_api.xml | 22 ++++++++++---- 4 files changed, 162 insertions(+), 18 deletions(-) diff --git a/parser/raylib_api.json b/parser/raylib_api.json index 7ad165f09..d9565c5c2 100644 --- a/parser/raylib_api.json +++ b/parser/raylib_api.json @@ -69,22 +69,82 @@ "fields": [ { "type": "float", - "name": "m0, m4, m8, m12", + "name": "m0", "description": "Matrix first row (4 components)" }, { "type": "float", - "name": "m1, m5, m9, m13", + "name": "m4", + "description": "Matrix first row (4 components)" + }, + { + "type": "float", + "name": "m8", + "description": "Matrix first row (4 components)" + }, + { + "type": "float", + "name": "m12", + "description": "Matrix first row (4 components)" + }, + { + "type": "float", + "name": "m1", "description": "Matrix second row (4 components)" }, { "type": "float", - "name": "m2, m6, m10, m14", + "name": "m5", + "description": "Matrix second row (4 components)" + }, + { + "type": "float", + "name": "m9", + "description": "Matrix second row (4 components)" + }, + { + "type": "float", + "name": "m13", + "description": "Matrix second row (4 components)" + }, + { + "type": "float", + "name": "m2", "description": "Matrix third row (4 components)" }, { "type": "float", - "name": "m3, m7, m11, m15", + "name": "m6", + "description": "Matrix third row (4 components)" + }, + { + "type": "float", + "name": "m10", + "description": "Matrix third row (4 components)" + }, + { + "type": "float", + "name": "m14", + "description": "Matrix third row (4 components)" + }, + { + "type": "float", + "name": "m3", + "description": "Matrix fourth row (4 components)" + }, + { + "type": "float", + "name": "m7", + "description": "Matrix fourth row (4 components)" + }, + { + "type": "float", + "name": "m11", + "description": "Matrix fourth row (4 components)" + }, + { + "type": "float", + "name": "m15", "description": "Matrix fourth row (4 components)" } ] diff --git a/parser/raylib_api.lua b/parser/raylib_api.lua index c046b65c2..0a127e47d 100644 --- a/parser/raylib_api.lua +++ b/parser/raylib_api.lua @@ -69,22 +69,82 @@ return { fields = { { type = "float", - name = "m0, m4, m8, m12", + name = "m0", description = "Matrix first row (4 components)" }, { type = "float", - name = "m1, m5, m9, m13", + name = "m4", + description = "Matrix first row (4 components)" + }, + { + type = "float", + name = "m8", + description = "Matrix first row (4 components)" + }, + { + type = "float", + name = "m12", + description = "Matrix first row (4 components)" + }, + { + type = "float", + name = "m1", description = "Matrix second row (4 components)" }, { type = "float", - name = "m2, m6, m10, m14", + name = "m5", + description = "Matrix second row (4 components)" + }, + { + type = "float", + name = "m9", + description = "Matrix second row (4 components)" + }, + { + type = "float", + name = "m13", + description = "Matrix second row (4 components)" + }, + { + type = "float", + name = "m2", description = "Matrix third row (4 components)" }, { type = "float", - name = "m3, m7, m11, m15", + name = "m6", + description = "Matrix third row (4 components)" + }, + { + type = "float", + name = "m10", + description = "Matrix third row (4 components)" + }, + { + type = "float", + name = "m14", + description = "Matrix third row (4 components)" + }, + { + type = "float", + name = "m3", + description = "Matrix fourth row (4 components)" + }, + { + type = "float", + name = "m7", + description = "Matrix fourth row (4 components)" + }, + { + type = "float", + name = "m11", + description = "Matrix fourth row (4 components)" + }, + { + type = "float", + name = "m15", description = "Matrix fourth row (4 components)" } } diff --git a/parser/raylib_api.txt b/parser/raylib_api.txt index 26ecec5bf..cf673d4da 100644 --- a/parser/raylib_api.txt +++ b/parser/raylib_api.txt @@ -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) diff --git a/parser/raylib_api.xml b/parser/raylib_api.xml index 30beef478..d1f58b5c1 100644 --- a/parser/raylib_api.xml +++ b/parser/raylib_api.xml @@ -16,11 +16,23 @@ - - - - - + + + + + + + + + + + + + + + + +