Add a helper function to set up vertex array pointers