add line drawing

This commit is contained in:
veclavtalica committed 2025-01-23 04:29:59 +03:00
1 parent 3f9906a918
commit 2df5616410
6 files changed
+74 -5

No files matched your search

+5
View File
@@ -42,6 +42,11 @@ TWN_API void draw_nine_slice(char const *texture,
float border_thickness, /* optional, default: 0 */
Color color); /* optional, default: all 255 */
TWN_API void draw_line(Vec2 start,
Vec2 finish,
float thickness, /* optional, default: 1 */
Color color); /* optional, default: all 255 */
/* pushes a textured 3d triangle onto the render queue */
/* texture coordinates are in pixels */
TWN_API void draw_triangle(char const *texture,