bind_cube   xtlang


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

Implementation

(bind-func bind_cube
  (lambda (tex:Texture* active:i32)
    ;; (println "start bind cube")
    (glActiveTexture (+ GL_TEXTURE0 active))
    (glBindTexture GL_TEXTURE_CUBE_MAP (id tex))
    (gl_print_error "error binding texture cube data")
    (cond ((or (= (type tex) GL_RGBA)
               (= (type tex) GL_BGRA))
           (begin
             ;; set some parameters
             (glTexParameteri GL_TEXTURE_CUBE_MAP GL_TEXTURE_WRAP_S GL_CLAMP_TO_EDGE)
             (glTexParameteri GL_TEXTURE_CUBE_MAP GL_TEXTURE_WRAP_T GL_CLAMP_TO_EDGE)
             (glTexParameteri GL_TEXTURE_CUBE_MAP GL_TEXTURE_WRAP_R GL_CLAMP_TO_EDGE)
             (glTexParameteri GL_TEXTURE_CUBE_MAP GL_TEXTURE_MIN_FILTER GL_LINEAR)
             (glTexParameteri GL_TEXTURE_CUBE_MAP GL_TEXTURE_MAG_FILTER GL_LINEAR)
             1))
          (else;; do nothing
           1))
    (gl_print_error "error setting tex cube parameters")
    (id tex)))


Back to Index

Similar Entries

  • Texture_bind_data    xtlang
  • Texture_bind_data    xtlang
  • Texture_bind_image    xtlang
  • VAO_bind_and_draw_arrays    xtlang
  • VAO_bind_attribute    xtlang
  • VAO_bind_attribute    xtlang
  • bind    xtlang
  • bind    xtlang
  • bind    xtlang
  • bind-alias    macro
  • bind-closure    macro
  • bind-data    macro
  • bind-data-constructors    scheme
  • bind-data-deconstructors    scheme
  • bind-data-deconstructors-macros    scheme
  • bind-data-getters    scheme
  • bind-data-type    scheme
  • bind-data-type-constructor    scheme
  • bind-data-types    scheme
  • bind-dylib    macro
  • bind-ext-val    macro
  • bind-external-dylib-declarations    scheme
  • bind-func    macro
  • bind-func-ipc    scheme
  • bind-gl-proc    macro
  • bind-glew    macro
  • bind-lib    macro
  • bind-lib-func    macro
  • bind-lib-type    macro
  • bind-lib-val    macro
  • bind-lib-xtm-get-string    macro
  • bind-macro    macro
  • bind-method    macro
  • bind-object    macro
  • bind-poly    macro
  • bind-static    macro
  • bind-type    macro
  • bind-val    macro
  • bind-wrapper    macro
  • bindfunc    xtlang
  • bindfunc_with_docstring    xtlang
  • bindfunc_with_zone_size    xtlang
  • bindfunc_with_zone_size_and_docstring    xtlang
  • clean-cube    xtlang
  • cube_whole    xtlang
  • fluid-cube-add-density    xtlang
  • fluid-cube-add-density    xtlang
  • fluid-cube-add-velocity    xtlang
  • fluid-cube-add-velocity    xtlang
  • fluid-cube-create    xtlang
  • fluid-cube-create    xtlang
  • fluid-cube-get-column    xtlang
  • fluid-cube-get-first-column    xtlang
  • fluid-cube-get-first-row    xtlang
  • fluid-cube-get-last-column    xtlang
  • fluid-cube-get-last-row    xtlang
  • fluid-cube-get-row    xtlang
  • fluid-cube-set-column    xtlang
  • fluid-cube-set-first-column    xtlang
  • fluid-cube-set-first-row    xtlang
  • fluid-cube-set-last-column    xtlang
  • fluid-cube-set-last-row    xtlang
  • fluid-cube-set-row    xtlang
  • fluid-step-cube    xtlang
  • fluid-step-cube    xtlang
  • fluid_cube_add_density    xtlang
  • fluid_cube_add_velocity    xtlang
  • fluid_cube_create    xtlang
  • fluid_step_cube    xtlang
  • get-fluid-cube    xtlang
  • get-fluid-cube-1    xtlang
  • get-fluid-cube-2    xtlang
  • get_fluid_cube    xtlang
  • glCube    xtlang
  • godot_method_bind_call    xtlang
  • godot_method_bind_get_method    xtlang
  • godot_method_bind_ptrcall    xtlang
  • impc:aot:insert-closure-binding-details    scheme
  • impc:aot:insert-ext-globalvar-binding-details    scheme
  • impc:aot:insert-gl-proc-binding-details    scheme
  • impc:aot:insert-globalvar-binding-details    scheme
  • impc:aot:insert-namedtype-binding-details    scheme
  • impc:aot:insert-nativefunc-binding-details    scheme
  • impc:aot:insert-polyfunc-binding-details    scheme
  • impc:aot:insert-static-binding-details    scheme
  • impc:aot:insert-typealias-binding-details    scheme
  • impc:aot:insert-xtmacro-binding-details    scheme
  • impc:compiler:print-bind-func-details-to-log    scheme
  • impc:compiler:print-binding-details-to-log    scheme
  • impc:compiler:print-lib-binding-details-to-log    scheme
  • impc:ti:bind-dylib    scheme
  • impc:ti:bind-lib    scheme
  • ipc:bind-func    scheme
  • ipc:bind-xtmrender-vars    scheme
  • load_cube_data    xtlang
  • match-result:bind    scheme
  • nnsock_bind    xtlang
  • plet-make-bindings    scheme
  • unbind    xtlang
  • unbind    xtlang
  • unbind    xtlang
  • unbind-func    macro
  • unbind_cube    xtlang
  • unbind_cube    xtlang
  • update_cube    xtlang