Added LINELOOP and TRIFAN graphics primitives

Please review/test.