Added index and vertex arrays + primitive drawing.