Skip to main content

Module rect

Module rect 

Source
Expand description

Fast pixel-aligned rectangle rendering directly into strips.

Functionsยง

alpha_mask_from_x_coverage ๐Ÿ”’
Build an alpha mask for the 4x4 tile from the given horizontal coverages, splatting them across the other dimension.
combined_tile_alpha ๐Ÿ”’
Compute the alphas for a single 4x4 tile, taking horizontal as well as vertical coverage of the rectangle into account.
coverage ๐Ÿ”’
Compute fractional pixel coverage for N consecutive pixels starting at start.
render
Render a pixel-aligned rectangle directly into strips.
render_impl ๐Ÿ”’
Generates strip data for an axis-aligned rectangle.