(bind-func VAO_bind_and_draw_arrays
(lambda (vao:VAO* draw_mode first_element count)
(glBindVertexArray (VAO_id vao))
(gl_print_error "Error binding vertex array")
(glDrawArrays draw_mode first_element count)
(gl_print_error "Error drawing vertex array")
(glBindVertexArray 0)))