texture_setup   xtlang


Defined in:  https://github.com/digego/extempore/tree/v0.8.9/examples/external/shader-tutorials/texture.xtm

Implementation

(bind-func texture_setup
  (lambda (tex)
    (glActiveTexture GL_TEXTURE0)
    (glBindTexture GL_TEXTURE_2D tex)
    (glTexImage2D GL_TEXTURE_2D
                  0
                  GL_RED
                  4 2 ;; texture is 4x2 float
                  0
                  GL_RED
                  GL_FLOAT
                  (convert texture_data))
    (glTexParameteri GL_TEXTURE_2D GL_TEXTURE_WRAP_S GL_CLAMP_TO_EDGE)
    (glTexParameteri GL_TEXTURE_2D GL_TEXTURE_WRAP_T GL_CLAMP_TO_EDGE)
    (glTexParameteri GL_TEXTURE_2D GL_TEXTURE_MIN_FILTER GL_NEAREST)
    (glTexParameteri GL_TEXTURE_2D GL_TEXTURE_MAG_FILTER GL_NEAREST)
    (gl_print_error "in texture_setup")))


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    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
  • curl_setup    xtlang
  • fbo_create_texture    xtlang
  • fbo_create_texture_rect    xtlang
  • ghttp_perform_request_with_setup_fn    xtlang
  • gl_load_movie_textures    xtlang
  • gl_load_movie_textures    xtlang
  • gl_setup    xtlang
  • impc:ir:genericfunc-type-setup    scheme
  • load_assim_material_texture    xtlang
  • set_slide_texture    xtlang
  • shader_setup_convolution_filter    xtlang
  • shader_update_projection_texture    xtlang
  • world_texture_setup    xtlang
  • xtm-setup-and-start-gl-loop    scheme
  • xtm_projection_texture_load    xtlang
  • xtm_projecton_texture_weight    xtlang