pull_colour   xtlang

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


;; get colour tex data back from the GPU and into the texture data structure
(bind-func pull_colour
  (lambda (fbo:FBO*)
    (let ((tex (colour_tex fbo)))
      (glBindFramebuffer GL_FRAMEBUFFER (id fbo))
      (glReadPixels 0 0 (width tex) (height tex) GL_RGBA GL_UNSIGNED_BYTE (data tex))
      (glBindFramebuffer GL_FRAMEBUFFER 0)
      (id fbo))))

Back to Index

Similar Entries

  • colour_tex    xtlang
  • cvMakeColour    xtlang
  • set_cairo_source_with_colour    xtlang
  • write_colour    xtlang
  • xtm_background_colour    xtlang
  • xtm_background_colour    xtlang
  • xtm_emit_vcolour    xtlang