add line drawing

This commit is contained in:
veclavtalica
2025-01-23 03:17:05 +03:00
parent 3f9906a918
commit 2df5616410
6 changed files with 74 additions and 5 deletions

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,