Source: designing/implementing a Triangle class which uses the GLSDK's glmesh library for rendering