update   xtlang


Defined in:  https://github.com/digego/extempore/tree/v0.8.9/libs/external/gl/gl-objects2.xtm

Implementation

(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)))


Back to Index

Similar Entries