Implemented VAO creation helper function.