Skip to content

creampuffle/coverage-rasterizer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Coverage Rasterizer

Small freestanding C rasterizer I extracted from my graphics work for FLAP.

It takes closed vector edges, fills them using the even-odd rule, and produces an 8-bit antialiased coverage mask. It can also blend that mask into an XRGB8888 pixel buffer.

Current features include

  • closed contour filling
  • 1 to 8 vertical coverage samples
  • even-odd fill rules
  • XRGB8888 output
  • caller-owned work memory
  • no heap allocation
  • no operating system dependencies

Build and test

cmake -S . -B build
cmake --build build
ctest --test-dir build

The public API is in include/coverage_rasterizer.h.

Released under the BSD 3-Clause License. Please keep the copyright and license notices.

About

Allocation-free antialiased even-odd coverage rasterizer in portable C

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors