add vertex array and buffer object function