Skip to main content

tile_count

Function tile_count 

Source
pub fn tile_count(source: Rect, destination: Rect) -> usize
Expand description

How many tiles tile_quads would produce, without building them.

A caller filling a large area with a small source can check the cost before paying it: each tile is one draw.