/share/twn_api.json: add draw_line

This commit is contained in:
veclavtalica 2025-02-01 13:47:35 +03:00
parent aeabb17f86
commit 898c11bbdf

View File

@ -127,6 +127,18 @@
]
},
"draw_line": {
"module": "draw",
"symbol": "line",
"header": "twn_draw.h",
"params": [
{ "name": "start", "type": "Vec2" },
{ "name": "finish", "type": "Vec2" },
{ "name": "thickness", "type": "float", "default": 1 },
{ "name": "color", "type": "Color", "default": { "r": 255, "g": 255, "b": 255, "a": 255 } }
]
},
"draw_triangle": {
"module": "draw",
"symbol": "triangle",