A C++ graphics primitive library and testing utilities