Skip to main content

Module rasterizer_sl_clip

Module rasterizer_sl_clip 

Source
Expand description

Rasterizer scanline clipping policies.

Port of agg_rasterizer_sl_clip.h — coordinate conversion (double → 24.8 fixed-point) and optional viewport clipping for the scanline rasterizer.

Provides two concrete clipper types:

  • RasterizerSlClipInt — default, with viewport clipping
  • RasterizerSlNoClip — passthrough, no clipping

Structs§

RasterizerSlClipInt
Scanline rasterizer clipping policy that clips line segments against a viewport rectangle, then converts to 24.8 fixed-point coordinates.
RasterizerSlNoClip
Scanline rasterizer policy that performs no clipping, just coordinate conversion (double → 24.8 fixed-point) and direct passthrough to the cell rasterizer.

Functions§

poly_coord
Upscale a double coordinate to 24.8 fixed-point. Public wrapper around the internal upscale function.