Simple triangle rasterizer written in C++/Qt