Use an enum in rasterize.cpp for possible polygon modes.

Gets rid of some magic constants.