/* Bruce A. Maxwell Fall 2013 test program for benchmarking the two polygon drawing algorithms: scanline fill and barycentric fill. */ #include #include #include #include "graphics.h" int main(int argc, char *argv[]) { const int NPoints = 1002; const int NTriangles = 1000; const int NPasses = 100; const int Rows = 500; const int Cols = 500; // create a bunch of random triangles Image *src; Point biglist[NPoints]; Polygon plist[NTriangles]; Color color[NTriangles]; int i, t; struct timeb tp; double start, end; for(i=0;i