Skip to main content

paint_gizmos

Function paint_gizmos 

Source
pub fn paint_gizmos(palette: &Palette, gizmos: &Gizmos, buf: &mut GlyphBuffer)
Expand description

Adds the debug view’s gizmos to buf (ADR-0085), in the order handed in, over everything drawn so far: each as an Item::Gizmo in its role’s engine colour from palette (GizmoRole::color), never the game’s own. A label prints its text into the cells from the one holding its pixel, keeping their backgrounds, and its item’s clip is those cells.