progress on twnlua bindgen

This commit is contained in:
veclavtalica
2025-01-09 21:47:08 +03:00
parent 8c401eda75
commit f3848d2d52
3 changed files with 66 additions and 9 deletions

View File

@ -167,6 +167,38 @@
]
},
"draw_camera": {
"module": "draw",
"symbol": "camera",
"header": "twn_draw.h",
"params": [
{ "name": "position", "type": "Vec3" },
{ "name": "fov", "type": "float" },
{ "name": "up", "type": "Vec3" },
{ "name": "direction", "type": "Vec3" }
]
},
"draw_camera_from_principal_axes": {
"module": "draw",
"symbol": "camera_from_principal_axes",
"header": "twn_draw.h",
"params": [
{ "name": "position", "type": "Vec3" },
{ "name": "fov", "type": "float" },
{ "name": "roll", "type": "float" },
{ "name": "pitch", "type": "float" },
{ "name": "yaw", "type": "float" }
],
"return": {
"fields": [
{ "name": "direction", "type": "Vec3" },
{ "name": "up", "type": "Vec3" }
],
"c_type": "DrawCameraFromPrincipalAxesResult"
}
},
"draw_skybox": {
"module": "draw",
"symbol": "skybox",
@ -194,7 +226,8 @@
"fields": [
{ "name": "x", "type": "float" },
{ "name": "y", "type": "float" }
]
],
"c_type": "Vec2"
},
"Vec3": {
@ -202,7 +235,8 @@
{ "name": "x", "type": "float" },
{ "name": "y", "type": "float" },
{ "name": "z", "type": "float" }
]
],
"c_type": "Vec3"
},
"Vec4": {
@ -211,7 +245,8 @@
{ "name": "y", "type": "float" },
{ "name": "z", "type": "float" },
{ "name": "w", "type": "float" }
]
],
"c_type": "Vec4"
},
"Color": {
@ -220,7 +255,8 @@
{ "name": "g", "type": "uint8_t" },
{ "name": "b", "type": "uint8_t" },
{ "name": "a", "type": "uint8_t" }
]
],
"c_type": "Color"
},
"Rect": {
@ -229,7 +265,8 @@
{ "name": "y", "type": "float" },
{ "name": "w", "type": "float" },
{ "name": "h", "type": "float" }
]
],
"c_type": "Rect"
},
"Control": {