Changed polygon handling to use vertex arrays rather than lists of vertex objects (with calls to glVertex).