Hi all,

I'm in need of a scanline algorithm that's capable of filling in a polygon. (I'd use the API functions to fill in my polygons, but I want each individual pixel in the polygon to be of a different shade, based on my funky lighting algorithm). Anyone got one handy?

(And while I'm at it, I don't suppose you have implementations of either the Gouraud or Phong illumination models, do you? Okay, now maybe I'm pushing my luck a little, but I would really appreciate a decent scanline algorithm!)

Thanks,

Justin