VAO_bind_attribute   xtlang


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

Implementation

(bind-func VAO_bind_attribute
  (lambda (vao:VAO* vbo:VBO* index size stride offset)
    (glBindVertexArray (VAO_id vao))
    (gl_print_error "Error binding VAO")
    (glBindBuffer GL_ARRAY_BUFFER (VBO_id vbo))
    (gl_print_error "Error binding VBO")
    (let ((component_size 4)) ;; for for GL_FLOAT and GL_INT
      (glVertexAttribPointer index
                             size
                             (VBO_type vbo)
                             GL_FALSE
                             (* component_size stride)
                             (pref-ptr (cast null GLvoid*) (* component_size offset))))
    (gl_print_error "Error binding VAO attribute")
    (glEnableVertexAttribArray index)
    (gl_print_error "Error enabling VAO attribute")
    (glBindVertexArray 0)))


Back to Index

Similar Entries

  • Texture_bind_data    xtlang    /digego/extempore/tree/v0.8.9/libs/external/gl/gl-objects.xtm
  • Texture_bind_data    xtlang    /digego/extempore/tree/v0.8.9/libs/external/gl/gl-objects.xtm
  • Texture_bind_image    xtlang    /digego/extempore/tree/v0.8.9/libs/external/gl/gl-objects.xtm
  • VAO    xtlang    /digego/extempore/tree/v0.8.9/libs/external/gl/gl-objects2.xtm
  • VAO_bind_and_draw_arrays    xtlang    /digego/extempore/tree/v0.8.9/libs/external/gl/gl-objects.xtm
  • VAO_bind_attribute    xtlang    /digego/extempore/tree/v0.8.9/libs/external/gl/gl-objects.xtm
  • VAO_create    xtlang    /digego/extempore/tree/v0.8.9/libs/external/gl/gl-objects.xtm
  • VAO_create_ss_quad    xtlang    /digego/extempore/tree/v0.8.9/libs/external/gl/gl-objects.xtm
  • VAO_delete    xtlang    /digego/extempore/tree/v0.8.9/libs/external/gl/gl-objects.xtm
  • VAO_id    xtlang    /digego/extempore/tree/v0.8.9/libs/external/gl/gl-objects.xtm
  • bind    xtlang    /digego/extempore/tree/v0.8.9/libs/external/gl/gl-objects2.xtm
  • bind    xtlang    /digego/extempore/tree/v0.8.9/libs/external/gl/gl-objects2.xtm
  • bind    xtlang    /digego/extempore/tree/v0.8.9/libs/external/gl/gl-objects2.xtm
  • bind-alias    macro    /digego/extempore/tree/v0.8.9/runtime/llvmti.xtm
  • bind-closure    macro    /digego/extempore/tree/v0.8.9/runtime/llvmti.xtm
  • bind-data    macro    /digego/extempore/tree/v0.8.9/libs/base/adt.xtm
  • bind-data-constructors    scheme    /digego/extempore/tree/v0.8.9/libs/base/adt.xtm
  • bind-data-deconstructors    scheme    /digego/extempore/tree/v0.8.9/libs/base/adt.xtm
  • bind-data-deconstructors-macros    scheme    /digego/extempore/tree/v0.8.9/libs/base/adt.xtm
  • bind-data-getters    scheme    /digego/extempore/tree/v0.8.9/libs/base/adt.xtm
  • bind-data-type    scheme    /digego/extempore/tree/v0.8.9/libs/base/adt.xtm
  • bind-data-type-constructor    scheme    /digego/extempore/tree/v0.8.9/libs/base/adt.xtm
  • bind-data-types    scheme    /digego/extempore/tree/v0.8.9/libs/base/adt.xtm
  • bind-dylib    macro    /digego/extempore/tree/v0.8.9/runtime/llvmti.xtm
  • bind-ext-val    macro    /digego/extempore/tree/v0.8.9/runtime/llvmti.xtm
  • bind-external-dylib-declarations    scheme    /digego/extempore/tree/v0.8.9/runtime/llvmti.xtm
  • bind-func    macro    /digego/extempore/tree/v0.8.9/runtime/llvmti.xtm
  • bind-func-ipc    scheme    /digego/extempore/tree/v0.8.9/runtime/llvmti.xtm
  • bind-gl-proc    macro    /digego/extempore/tree/v0.8.9/libs/external/gl/gl-getprocaddress.xtm
  • bind-glew    macro    /digego/extempore/tree/v0.8.9/libs/external/gl/glcore-glew.xtm
  • bind-lib    macro    /digego/extempore/tree/v0.8.9/runtime/llvmti.xtm
  • bind-lib-func    macro    /digego/extempore/tree/v0.8.9/runtime/llvmti.xtm
  • bind-lib-type    macro    /digego/extempore/tree/v0.8.9/runtime/llvmti.xtm
  • bind-lib-val    macro    /digego/extempore/tree/v0.8.9/runtime/llvmti.xtm
  • bind-lib-xtm-get-string    macro    /digego/extempore/tree/v0.8.9/runtime/llvmti.xtm
  • bind-macro    macro    /digego/extempore/tree/v0.8.9/runtime/llvmti.xtm
  • bind-method    macro    /digego/extempore/tree/v0.8.9/libs/core/xobject.xtm
  • bind-object    macro    /digego/extempore/tree/v0.8.9/libs/core/xobject.xtm
  • bind-poly    macro    /digego/extempore/tree/v0.8.9/runtime/llvmti.xtm
  • bind-static    macro    /digego/extempore/tree/v0.8.9/runtime/llvmti.xtm
  • bind-type    macro    /digego/extempore/tree/v0.8.9/runtime/llvmti.xtm
  • bind-val    macro    /digego/extempore/tree/v0.8.9/runtime/llvmti.xtm
  • bind-wrapper    macro    /digego/extempore/tree/v0.8.9/runtime/llvmti.xtm
  • bind_cube    xtlang    /digego/extempore/tree/v0.8.9/libs/external/gl/gl-objects2.xtm
  • bindfunc    xtlang    /digego/extempore/tree/v0.8.9/libs/contrib/aot-compilation.xtm
  • bindfunc_with_docstring    xtlang    /digego/extempore/tree/v0.8.9/libs/contrib/aot-compilation.xtm
  • bindfunc_with_zone_size    xtlang    /digego/extempore/tree/v0.8.9/libs/contrib/aot-compilation.xtm
  • bindfunc_with_zone_size_and_docstring    xtlang    /digego/extempore/tree/v0.8.9/libs/contrib/aot-compilation.xtm
  • generate_random_vao    xtlang    /digego/extempore/tree/v0.8.9/examples/external/xtmrender4.xtm
  • godot_method_bind_call    xtlang    /digego/extempore/tree/v0.8.9/libs/contrib/libgodot.xtm
  • godot_method_bind_get_method    xtlang    /digego/extempore/tree/v0.8.9/libs/contrib/libgodot.xtm
  • godot_method_bind_ptrcall    xtlang    /digego/extempore/tree/v0.8.9/libs/contrib/libgodot.xtm
  • impc:aot:insert-closure-binding-details    scheme    /digego/extempore/tree/v0.8.9/runtime/llvmti.xtm
  • impc:aot:insert-ext-globalvar-binding-details    scheme    /digego/extempore/tree/v0.8.9/runtime/llvmti.xtm
  • impc:aot:insert-gl-proc-binding-details    scheme    /digego/extempore/tree/v0.8.9/libs/external/gl/gl-getprocaddress.xtm
  • impc:aot:insert-globalvar-binding-details    scheme    /digego/extempore/tree/v0.8.9/runtime/llvmti.xtm
  • impc:aot:insert-namedtype-binding-details    scheme    /digego/extempore/tree/v0.8.9/runtime/llvmti.xtm
  • impc:aot:insert-nativefunc-binding-details    scheme    /digego/extempore/tree/v0.8.9/runtime/llvmti.xtm
  • impc:aot:insert-polyfunc-binding-details    scheme    /digego/extempore/tree/v0.8.9/runtime/llvmti.xtm
  • impc:aot:insert-static-binding-details    scheme    /digego/extempore/tree/v0.8.9/runtime/llvmti.xtm
  • impc:aot:insert-typealias-binding-details    scheme    /digego/extempore/tree/v0.8.9/runtime/llvmti.xtm
  • impc:aot:insert-xtmacro-binding-details    scheme    /digego/extempore/tree/v0.8.9/runtime/llvmti.xtm
  • impc:compiler:print-bind-func-details-to-log    scheme    /digego/extempore/tree/v0.8.9/runtime/llvmti.xtm
  • impc:compiler:print-binding-details-to-log    scheme    /digego/extempore/tree/v0.8.9/runtime/llvmti.xtm
  • impc:compiler:print-lib-binding-details-to-log    scheme    /digego/extempore/tree/v0.8.9/runtime/llvmti.xtm
  • impc:ti:bind-dylib    scheme    /digego/extempore/tree/v0.8.9/runtime/llvmti.xtm
  • impc:ti:bind-lib    scheme    /digego/extempore/tree/v0.8.9/runtime/llvmti.xtm
  • init_vao    xtlang    /digego/extempore/tree/v0.8.9/examples/contrib/fluids_2d.xtm
  • ipc:bind-func    scheme    /digego/extempore/tree/v0.8.9/runtime/llvmti.xtm
  • ipc:bind-xtmrender-vars    scheme    /digego/extempore/tree/v0.8.9/libs/external/graphics-pipeline-scm.xtm
  • match-result:bind    scheme    /digego/extempore/tree/v0.8.9/libs/base/pattern.xtm
  • nnsock_bind    xtlang    /digego/extempore/tree/v0.8.9/libs/external/nanomsg.xtm
  • plet-make-bindings    scheme    /digego/extempore/tree/v0.8.9/libs/base/pattern.xtm
  • set_attribute    xtlang    /digego/extempore/tree/v0.8.9/libs/external/gl/gl-objects2.xtm
  • set_attribute    xtlang    /digego/extempore/tree/v0.8.9/libs/external/gl/gl-objects2.xtm
  • set_attribute    xtlang    /digego/extempore/tree/v0.8.9/libs/external/gl/gl-objects2.xtm
  • set_attribute    xtlang    /digego/extempore/tree/v0.8.9/libs/external/gl/gl-objects2.xtm
  • set_attribute    xtlang    /digego/extempore/tree/v0.8.9/libs/external/gl/gl-objects2.xtm
  • set_attribute    xtlang    /digego/extempore/tree/v0.8.9/libs/external/gl/gl-objects2.xtm
  • unbind    xtlang    /digego/extempore/tree/v0.8.9/libs/external/gl/gl-objects2.xtm
  • unbind    xtlang    /digego/extempore/tree/v0.8.9/libs/external/gl/gl-objects2.xtm
  • unbind    xtlang    /digego/extempore/tree/v0.8.9/libs/external/gl/gl-objects2.xtm
  • unbind-func    macro    /digego/extempore/tree/v0.8.9/runtime/llvmti.xtm
  • unbind_cube    xtlang    /digego/extempore/tree/v0.8.9/libs/external/gl/gl-objects2.xtm
  • unbind_cube    xtlang    /digego/extempore/tree/v0.8.9/libs/external/gl/gl-objects2.xtm
  • unset_attribute    xtlang    /digego/extempore/tree/v0.8.9/libs/external/gl/gl-objects2.xtm
  • xtm_draw_vao    xtlang    /digego/extempore/tree/v0.8.9/libs/external/graphics-pipeline.xtm
  • xtm_draw_vao    xtlang    /digego/extempore/tree/v0.8.9/libs/external/graphics-pipeline.xtm