Texture   xtlang


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

Implementation

;; texture from existing data (no copy)
(bind-func Texture
  (lambda (width:i32 height:i32 comp:i32 data:i8*)
    (let ((tex (cond ((= comp 1)
                      (Texture:[Texture*,i32]* GL_DEPTH_COMPONENT))
                     ((= comp 3)
                      (Texture:[Texture*,i32]* GL_RGB))
                     (else
                      (Texture:[Texture*,i32]* GL_RGBA)))))
      (tset! tex 2 width)
      (tset! tex 3 height)
      (tset! tex 4 (cast data i8*))
      (update tex)
      tex)))


Back to Index

Similar Entries

  • FBO_color_texture    xtlang
  • FBO_create_with_textures    xtlang
  • FBO_depth_texture    xtlang
  • Texture    xtlang
  • Texture    xtlang
  • Texture    xtlang
  • Texture    xtlang
  • Texture    xtlang
  • Texture_bind_data    xtlang
  • Texture_bind_data    xtlang
  • Texture_bind_image    xtlang
  • Texture_create    xtlang
  • Texture_create_FBO_depth_texture    xtlang
  • Texture_delete    xtlang
  • ai_load_ogl_texture    xtlang
  • ai_load_ogl_texture_from_buffer    xtlang
  • create_texture_shader    xtlang
  • fbo_create_texture    xtlang
  • fbo_create_texture_rect    xtlang
  • gl_load_movie_textures    xtlang
  • gl_load_movie_textures    xtlang
  • load_assim_material_texture    xtlang
  • set_slide_texture    xtlang
  • shader_update_projection_texture    xtlang
  • texture_setup    xtlang
  • world_texture_setup    xtlang
  • xtm_projection_texture_load    xtlang
  • xtm_projecton_texture_weight    xtlang