a fork of ftgl with some of my modifications