/share/twn_api.json: add draw_line
This commit is contained in:
parent
aeabb17f86
commit
898c11bbdf
@ -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",
|
||||
|
Loading…
Reference in New Issue
Block a user