pub fn render_layers_with_cache_sized<F>(
fb: &mut impl FbSurface,
layers: &[MapLayer],
camera_x: i32,
camera_y: i32,
width: u32,
height: u32,
tile_size: u32,
tile_color: F,
cache: Option<&mut LayerTileCache>,
)Expand description
Like render_layers_with_cache but with a caller-specified tile_size
(pixels per tile side).
Note: LayerTileCache stores fixed 8×8 RgbaTiles, so caching is
bypassed whenever tile_size != TILE_SIZE — the per-pixel tile_color
path is used instead. (wuxia’s static maps render fine without the cache;
the full-colour tile_color closure is a cheap array index.)