some TODOs to twn_draw.h

This commit is contained in:
veclavtalica 2025-01-27 04:16:00 +03:00
parent 166ae43981
commit f625dde8d1

View File

@ -47,6 +47,7 @@ TWN_API void draw_line(Vec2 start,
float thickness, /* optional, default: 1 */ float thickness, /* optional, default: 1 */
Color color); /* optional, default: all 255 */ Color color); /* optional, default: all 255 */
/* TODO: combine with draw_rectangle()? */
TWN_API void draw_box(Rect rect, TWN_API void draw_box(Rect rect,
float thickness, /* optional, default: 1 */ float thickness, /* optional, default: 1 */
Color color); /* optional, default: all 255 */ Color color); /* optional, default: all 255 */
@ -64,6 +65,7 @@ TWN_API void draw_triangle(char const *texture,
Color c1, /* optional, default: all 255 */ Color c1, /* optional, default: all 255 */
Color c2); /* optional, default: all 255 */ Color c2); /* optional, default: all 255 */
/* TODO: double sided option */
TWN_API void draw_quad(char const *texture, TWN_API void draw_quad(char const *texture,
Vec3 v0, /* upper-left */ Vec3 v0, /* upper-left */
Vec3 v1, /* bottom-left */ Vec3 v1, /* bottom-left */