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    /digego/extempore/tree/v0.8.9/libs/external/gl/gl-objects2.xtm
  • VBO    xtlang    /digego/extempore/tree/v0.8.9/libs/external/gl/gl-objects2.xtm
  • VBO    xtlang    /digego/extempore/tree/v0.8.9/libs/external/gl/gl-objects2.xtm
  • VBO    xtlang    /digego/extempore/tree/v0.8.9/libs/external/gl/gl-objects2.xtm
  • VBO    xtlang    /digego/extempore/tree/v0.8.9/libs/external/gl/gl-objects2.xtm
  • VBO    xtlang    /digego/extempore/tree/v0.8.9/libs/external/gl/gl-objects2.xtm
  • VBO    xtlang    /digego/extempore/tree/v0.8.9/libs/external/gl/gl-objects2.xtm
  • VBO_create    xtlang    /digego/extempore/tree/v0.8.9/libs/external/gl/gl-objects.xtm
  • VBO_create    xtlang    /digego/extempore/tree/v0.8.9/libs/external/gl/gl-objects.xtm
  • VBO_create    xtlang    /digego/extempore/tree/v0.8.9/libs/external/gl/gl-objects.xtm
  • VBO_create    xtlang    /digego/extempore/tree/v0.8.9/libs/external/gl/gl-objects.xtm
  • VBO_data    xtlang    /digego/extempore/tree/v0.8.9/libs/external/gl/gl-objects.xtm
  • VBO_delete    xtlang    /digego/extempore/tree/v0.8.9/libs/external/gl/gl-objects.xtm
  • VBO_id    xtlang    /digego/extempore/tree/v0.8.9/libs/external/gl/gl-objects.xtm
  • VBO_size    xtlang    /digego/extempore/tree/v0.8.9/libs/external/gl/gl-objects.xtm
  • VBO_type    xtlang    /digego/extempore/tree/v0.8.9/libs/external/gl/gl-objects.xtm
  • VBO_update_data    xtlang    /digego/extempore/tree/v0.8.9/libs/external/gl/gl-objects.xtm
  • ai_build_mesh_vbo    xtlang    /digego/extempore/tree/v0.8.9/libs/external/assimp.xtm
  • create_vbo    xtlang    /digego/extempore/tree/v0.8.9/libs/external/opengl.xtm
  • get_vbo    xtlang    /digego/extempore/tree/v0.8.9/libs/external/gl/gl-objects2.xtm
  • xtm_build_mesh_vbo    xtlang    /digego/extempore/tree/v0.8.9/libs/external/graphics-pipeline.xtm