- Capturing user polygon input correctly
- Scan converting input polygons
- Different Color for each scanned polygon
- Mode transition to clip mode (‘c’)
- Mode transition back to scan mode (’s’)
- Clip rectangle capture and scan conversion as click and drag
- Clipping of polygons and scan conversion of clipped polygons
- Program written and tested on Linux 64-bit.
- Requires a c++14 compatible compiler
Written for GCC on *nix platforms. Requires libglut, libGL, and libGLU to be in $PATH
The Makefile can set the environment variables automatically but only if they are not previously exported. If the Makefile seems to be broken, one or all of the environment variables probably need to be re-exported.
$ export CXXFLAGS=-std=c++14 -I. $ export LDFLAGS=-lglut -lGL -lGLU $ export CXX=g++ $ make all
Run ./main
if it exists otherwise it must be compiled. See above if there are
compiler errors.
$ make all $ ./main