use static, fixed arrays for circle geometry data instead of allocating for each one

This commit is contained in:
wanp committed 2024-10-13 22:32:59 -03:00
1 parent ffab6a3924
commit f7f27119e1
5 files changed
+18 -23

No files matched your search

+1
View File
@@ -22,6 +22,7 @@ TWN_API void draw_sprite(char const *path,
TWN_API void draw_rectangle(Rect rect, Color color);
/* pushes a filled circle onto the circle render queue */
/* note that its edges may look jagged with a radius larger than 2048 */
TWN_API void draw_circle(Vec2 position, float radius, Color color);
/* TODO: have font optional, with something minimal coming embedded */