write   xtlang


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

Implementation

(bind-func write
  (lambda (tex:Texture* filename:String* flip:i1)
    (let ((comp (if (= (type tex) GL_RGB) 3 4)))
      (if flip (stbi_flip_vertically (width tex) (height tex) comp (data tex)))
      (stbi_write_png (cstring filename) (width tex) (height tex)
                      comp
                      (data tex) (* (width tex) comp 1))
      void)))


Back to Index

Similar Entries

  • curl_write_callback    xtlang
  • ocv_VideoWriter    xtlang
  • ocv_VideoWriter    xtlang
  • ocv_VideoWriter    scheme
  • ocv_VideoWriter1    xtlang
  • ocv_imwrite    xtlang
  • ocv_imwrite    xtlang
  • ocv_imwrite    scheme
  • ocv_imwrite1    xtlang
  • ocv_imwrite2    xtlang
  • ocv_write    xtlang
  • pm_write    xtlang
  • read_and_write_frame    xtlang
  • sys_file_write    xtlang
  • write_colour    xtlang
  • xtmdoc-write-alist-args-as-json    scheme
  • xtmdoc-write-alist-as-json    scheme