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>,
)Expand description
Like render_layers but accepts an optional LayerTileCache for
accelerating no_animation layers.