资源说明:Simple project that I created for computer graphics class - DDA and WuRokne algorithms for drawing lines and queue based FloodFill to fill areas. Written in C, using allegro5 library.
Compile instructions: gcc -lallegro_primitives -lallegro_main -lallegro -x c -std=c99 main.c -o flood Requirements: C compiler Allegro5 library INSTRUCTION LPM - draw line PPM - flood fill ESC - Quit program W - switch to draw lines using Wu Rokne algorithm P - switch to draw lines using DDA algorithm T - test DDA algorithm (should draw a square) Y - test WuRokne algorithm (should draw a square) B - benchmark of DDA and WuRokne algorithm (clears screen!) C - clear screen
本源码包内暂不包含可直接显示的源代码文件,请下载源码包。