world_texture_setup   xtlang


Defined in:  https://github.com/digego/extempore/tree/v0.8.9/examples/contrib/game-of-life.xtm

Implementation

(bind-func world_texture_setup
  (lambda ()
    (glActiveTexture GL_TEXTURE0)
    (glBindTexture GL_TEXTURE_2D tex)
    (glTexImage2D GL_TEXTURE_2D
                  0
                  GL_RGB
                  (convert (world_width world))
                  (convert (world_height world))
                  0
                  GL_RED
                  GL_BYTE
                  (world_data world))
    (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 world_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
  • callback_goodbye_world    xtlang
  • callback_hello_world    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
  • lilv_init_world    xtlang
  • load_assim_material_texture    xtlang
  • set_slide_texture    xtlang
  • shader_setup_convolution_filter    xtlang
  • shader_update_projection_texture    xtlang
  • test_world_copy    xtlang
  • test_world_foo    xtlang
  • test_world_indexing    xtlang
  • test_world_periodic_bc    xtlang
  • texture_setup    xtlang
  • world_add_blinker    xtlang
  • world_ascii_print    xtlang
  • world_basic_print    xtlang
  • world_copy    xtlang
  • world_create    xtlang
  • world_data    xtlang
  • world_data_index    xtlang
  • world_data_size    xtlang
  • world_equal    xtlang
  • world_generation    xtlang
  • world_height    xtlang
  • world_increment_generation    xtlang
  • world_init    xtlang
  • world_reset    xtlang
  • world_set_generation    xtlang
  • world_set_to_checkerboard    xtlang
  • world_set_to_inverse    xtlang
  • world_step    xtlang
  • world_width    xtlang
  • xtm-setup-and-start-gl-loop    scheme
  • xtm_projection_texture_load    xtlang
  • xtm_projecton_texture_weight    xtlang