twn_lines.c: 3d case

This commit is contained in:
veclavtalica
2025-03-01 03:46:11 +03:00
parent 5911cbd980
commit 307d5552f6
6 changed files with 62 additions and 6 deletions

View File

@ -47,6 +47,13 @@ TWN_API void draw_line(Vec2 start,
float thickness, /* optional, default: 1 */
Color color); /* optional, default: all 255 */
/* intended for debugging and spatial reference */
TWN_API void draw_line_3d(Vec3 start,
Vec3 finish,
float thickness, /* optional, default: 1 */
Color color); /* optional, default: all 255 */
/* TODO: combine with draw_rectangle()? */
TWN_API void draw_box(Rect rect,
float thickness, /* optional, default: 1 */