From 2f6f7852befe71c0001dc2b3e4c8f7381bc7432f Mon Sep 17 00:00:00 2001 From: veclavtalica Date: Sat, 1 Mar 2025 03:59:55 +0300 Subject: [PATCH] twn_api.json: add draw_line_3d() --- share/twn_api.json | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/share/twn_api.json b/share/twn_api.json index 495a95f..3559f98 100644 --- a/share/twn_api.json +++ b/share/twn_api.json @@ -144,6 +144,18 @@ ] }, + "draw_line_3d": { + "module": "draw", + "symbol": "line_3d", + "header": "twn_draw.h", + "params": [ + { "name": "start", "type": "Vec3" }, + { "name": "finish", "type": "Vec3" }, + { "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",