/csce441-a3

Primary LanguageC++GNU General Public License v3.0GPL-3.0

CSCE 441 Assignment 3

Checklist

  • 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

Platform

  • Program written and tested on Linux 64-bit.
  • Requires a c++14 compatible compiler

Makefile

Written for GCC on *nix platforms. Requires libglut, libGL, and libGLU to be in $PATH

Changing compile and linking flags

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

Running

Run ./main if it exists otherwise it must be compiled. See above if there are compiler errors.

$ make all
$ ./main