Bundle a texture draw's placement, color, vertices and blur into TextureDraw

Most callers set only a transform and tint, by name now, in place of a
nine-parameter call with positional defaults.
This commit is contained in:
shweet committed 2026-11-22 19:58:03 -05:00
1 parent ae7dafaef6
commit 9aba726e85
5 files changed
+44 -19

No files matched your search

+5 -2
View File
@@ -104,8 +104,11 @@ void GenerateAnimationFromGrid::update(Manager& manager, Document& document, Res
percent_to_unit(frame.skew));
auto vertices = uv_vertices_get(uvMin, uvMax);
texture_render(shaderTexture, texture_id_get(*sourceTexture), transform, frame.tint,
frame.colorOffset, vertices.data());
texture_render(shaderTexture, texture_id_get(*sourceTexture),
{.transform = transform,
.tint = frame.tint,
.colorOffset = frame.colorOffset,
.vertices = vertices.data()});
}
}
}