(bind-func update
"update the full buffer"
(lambda (vbo:VBO*)
(glBindBuffer GL_ARRAY_BUFFER (id vbo))
(gl_print_error "Error binding VBO")
(glBufferSubData GL_ARRAY_BUFFER 0 (size vbo) (data vbo))
(gl_print_error "Error updating VBO subdata")
(glBindBuffer GL_ARRAY_BUFFER 0)))