pub fn render<'p>(
sheet: &Sheet<'_>,
data: &SpriteData,
mesh: impl FnOnce() -> Result<Processed<'p>, MeshError>,
meter: &Arc<Meter>,
) -> Result<Image, SpriteError>Expand description
One sprite’s image (module docs): sheet is the render data’s texture
(and alpha texture), data its rectangle and settings with the
Sprite’s m_PixelsToUnits, and mesh processes the Sprite’s own
m_RD (MeshHandler(m_Sprite.m_RD, version).process()), called only
for a tight sprite, where UnityPy calls it. The image is charged to
meter, and every buffer and loop on the way; the pixel work runs
under crate::contain().