Add enum primitiveType and update vertex_array with it
Updates classes with rects.