[][src]Function all_is_cubes::drawing::draw_to_blocks

pub fn draw_to_blocks<D>(ctx: &mut BlockGen<'_>, object: D) -> Space where
    &'a D: Drawable<Rgb888>,
    D: Dimensions + Transform

Generate a set of blocks which together display the given Drawable which may be larger than one block. The Z position is always the middle of the block.