nothings / stb

stb single-file public domain libraries for C/C++
https://twitter.com/nothings
Other
26.55k stars 7.69k forks source link

stb_rasterizer.h #642

Open JinShil opened 6 years ago

JinShil commented 6 years ago

I just wanted to suggest pulling the rasterizer out of stb_truetype.h into its own file so it can be used for general polygon rendering, not just fonts.

technosaurus commented 6 years ago

see: https://github.com/memononen/nanosvg/blob/master/src/nanosvgrast.h

The polygon rasterization is heavily based on stb_truetype rasterizer by Sean Barrett - http://nothings.org/