VBO   xtlang


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

Implementation

(bind-func VBO
  (lambda (buf:float* buflen:i64 usage:i32 elements:i64 stride:i64)
    (let ((vbo:VBO* (VBO:[VBO*,i32,i32,i64,i8*,i64,i64]* 0 GL_FLOAT (* 4 buflen) (cast buf GLvoid*) elements stride)))
      (glGenBuffers 1 (tref-ptr vbo 0))
      (gl_print_error "Error creating VBO")
      (glBindBuffer GL_ARRAY_BUFFER (id vbo))
      (glBufferData GL_ARRAY_BUFFER (size vbo) (data vbo) usage)
      (gl_print_error "Error setting VBO data")
      (glBindBuffer GL_ARRAY_BUFFER 0)
      ;(printf "Created ") (print vbo) (printf "\n")
      (zone_cleanup (glDeleteBuffers 1 (tref-ptr vbo 0))
                    (gl_print_error "Error deleting VBO"))
      vbo)))


Back to Index

Similar Entries

  • VBO    xtlang
  • VBO    xtlang
  • VBO    xtlang
  • VBO    xtlang
  • VBO    xtlang
  • VBO    xtlang
  • VBO    xtlang
  • VBO_create    xtlang
  • VBO_create    xtlang
  • VBO_create    xtlang
  • VBO_create    xtlang
  • VBO_data    xtlang
  • VBO_delete    xtlang
  • VBO_id    xtlang
  • VBO_size    xtlang
  • VBO_type    xtlang
  • VBO_update_data    xtlang
  • ai_build_mesh_vbo    xtlang
  • create_vbo    xtlang
  • get_vbo    xtlang
  • xtm_build_mesh_vbo    xtlang