Remove beginPolygon, vertex and endPolygon functions