Done!

http://pastebin.com/ff5a251c

enjoy, and I hope it helps

BTW, it isn't a COMPLETE implementation, but it does points, lines, triangles (wireframe) only...

cheers,
Paul