api changes and progress on filling in twn_api.json

This commit is contained in:
veclavtalica committed 2025-01-07 14:14:21 +03:00
1 parent 5c89c55b3e
commit 8c401eda75
5 files changed
+92 -23

No files matched your search

+7 -1
View File
@@ -15,8 +15,14 @@ void draw_triangle(const char *path,
Vec3 v2,
Vec2 uv0,
Vec2 uv1,
Vec2 uv2)
Vec2 uv2,
Color c0,
Color c1,
Color c2)
{
// TODO: support color
(void)c0; (void)c1; (void)c2;
// TODO: order drawing by atlas id as well, so that texture rebinding is not as common
const TextureKey texture_key = textures_get_key(&ctx.texture_cache, path);