Skip to main content

render_layers_with_cache

Function render_layers_with_cache 

Source
pub fn render_layers_with_cache<F>(
    fb: &mut impl FbSurface,
    layers: &[MapLayer],
    camera_x: i32,
    camera_y: i32,
    width: u32,
    height: u32,
    tile_color: F,
    cache: Option<&mut LayerTileCache>,
)
where F: Fn(u16, u8, u8, u8) -> Rgba,
Expand description

Like render_layers but accepts an optional LayerTileCache for accelerating no_animation layers.