FBO   xtlang


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

Implementation

(bind-func FBO
  (lambda (colour:Texture* depth:Texture*)
    (let ((fbo (FBO:[FBO*,i32,Texture*,Texture*,i32,i32]* 0 colour depth (width colour) (height colour))))
      (glGenFramebuffers 1 (tref-ptr fbo 0))
      (gl_print_error "Error creating FBO")
      (glBindFramebuffer GL_FRAMEBUFFER (tref fbo 0))
      (bind colour)
      (glFramebufferTexture2D GL_FRAMEBUFFER GL_COLOR_ATTACHMENT0 GL_TEXTURE_2D (id colour) 0)
      (unbind colour)
      (update colour)
      (bind depth)
      (glFramebufferTexture2D GL_FRAMEBUFFER GL_DEPTH_ATTACHMENT GL_TEXTURE_2D (id depth) 0)
      (unbind depth)
      (update depth)
      (glBindFramebuffer GL_FRAMEBUFFER 0)
      fbo)))


Back to Index

Similar Entries

  • FBO    xtlang
  • FBO    xtlang
  • FBO    xtlang
  • FBO    xtlang
  • FBO_color_texture    xtlang
  • FBO_create    xtlang
  • FBO_create_with_textures    xtlang
  • FBO_depth_texture    xtlang
  • FBO_height    xtlang
  • FBO_id    xtlang
  • FBO_width    xtlang
  • Texture_create_FBO_depth_texture    xtlang
  • create_fbo    xtlang
  • create_fbo_no_depth    xtlang
  • create_fbo_no_depth_rect    xtlang
  • create_fbo_rect    xtlang
  • fbo_create_depth_buffer    xtlang
  • fbo_create_depth_buffer_rect    xtlang
  • fbo_create_texture    xtlang
  • fbo_create_texture_rect    xtlang
  • get-fbo    xtlang
  • get-fbo    xtlang
  • xtm_render_fbo    xtlang
  • xtm_shadow_fbo    xtlang