world_copy   xtlang


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

Implementation

(bind-func world_copy
  (lambda (w)
    (let ((new_world (world_create (world_width w)
                                   (world_height w)))
          (old_data (world_data w))
          (new_data (world_data new_world)))
      ;; copy the world data
      (doloop (i (world_data_size w))
        (pset! new_data i (pref old_data i)))
      new_world)))


Back to Index

Similar Entries

  • Vcopy    xtlang    /digego/extempore/tree/v0.8.9/libs/contrib/gsl.xtm
  • array_4_ptr_copy    xtlang    /digego/extempore/tree/v0.8.9/libs/external/graphics-pipeline.xtm
  • audiofile_copy_samples    xtlang    /digego/extempore/tree/v0.8.9/libs/core/audiobuffer.xtm
  • callback_goodbye_world    xtlang    /digego/extempore/tree/v0.8.9/examples/external/ulfius.xtm
  • callback_hello_world    xtlang    /digego/extempore/tree/v0.8.9/examples/external/ulfius.xtm
  • cl:copy-list    scheme    /digego/extempore/tree/v0.8.9/runtime/scheme.xtm
  • cl:tree-copy    scheme    /digego/extempore/tree/v0.8.9/runtime/scheme.xtm
  • copy    xtlang    /digego/extempore/tree/v0.8.9/libs/core/adt.xtm
  • copy    xtlang    /digego/extempore/tree/v0.8.9/libs/contrib/stream.xtm
  • copy_h    xtlang    /digego/extempore/tree/v0.8.9/libs/core/adt.xtm
  • ghttp_copy_request_body_into_buffer    xtlang    /digego/extempore/tree/v0.8.9/libs/external/ghttp.xtm
  • hcopy    xtlang    /digego/extempore/tree/v0.8.9/libs/base/base.xtm
  • hcopy    xtlang    /digego/extempore/tree/v0.8.9/libs/base/base.xtm
  • lilv_init_world    xtlang    /digego/extempore/tree/v0.8.9/libs/contrib/lilv.xtm
  • mcopy    xtlang    /digego/extempore/tree/v0.8.9/libs/core/math.xtm
  • mcopy    xtlang    /digego/extempore/tree/v0.8.9/libs/core/math.xtm
  • ocv_copyto    xtlang    /digego/extempore/tree/v0.8.9/libs/contrib/xtmcv.xtm
  • string-copy    scheme    /digego/extempore/tree/v0.8.9/runtime/init.xtm
  • sys_file_copy    xtlang    /digego/extempore/tree/v0.8.9/libs/external/system.xtm
  • test_world_copy    xtlang    /digego/extempore/tree/v0.8.9/tests/core/game-of-life.xtm
  • test_world_foo    xtlang    /digego/extempore/tree/v0.8.9/tests/core/game-of-life.xtm
  • test_world_indexing    xtlang    /digego/extempore/tree/v0.8.9/tests/core/game-of-life.xtm
  • test_world_periodic_bc    xtlang    /digego/extempore/tree/v0.8.9/tests/core/game-of-life.xtm
  • tree-copy    scheme    /digego/extempore/tree/v0.8.9/runtime/scheme.xtm
  • vcopy    xtlang    /digego/extempore/tree/v0.8.9/libs/core/math.xtm
  • vcopy    xtlang    /digego/extempore/tree/v0.8.9/libs/core/math.xtm
  • vcopy    xtlang    /digego/extempore/tree/v0.8.9/libs/core/math.xtm
  • vcopy    xtlang    /digego/extempore/tree/v0.8.9/libs/core/math.xtm
  • vcopy_pack    xtlang    /digego/extempore/tree/v0.8.9/libs/core/math.xtm
  • vcopy_pack    xtlang    /digego/extempore/tree/v0.8.9/libs/core/math.xtm
  • vcopy_unpack    xtlang    /digego/extempore/tree/v0.8.9/libs/core/math.xtm
  • vcopy_unpack    xtlang    /digego/extempore/tree/v0.8.9/libs/core/math.xtm
  • world_add_blinker    xtlang    /digego/extempore/tree/v0.8.9/libs/contrib/game-of-life.xtm
  • world_ascii_print    xtlang    /digego/extempore/tree/v0.8.9/libs/contrib/game-of-life.xtm
  • world_basic_print    xtlang    /digego/extempore/tree/v0.8.9/libs/contrib/game-of-life.xtm
  • world_create    xtlang    /digego/extempore/tree/v0.8.9/libs/contrib/game-of-life.xtm
  • world_data    xtlang    /digego/extempore/tree/v0.8.9/libs/contrib/game-of-life.xtm
  • world_data_index    xtlang    /digego/extempore/tree/v0.8.9/libs/contrib/game-of-life.xtm
  • world_data_size    xtlang    /digego/extempore/tree/v0.8.9/libs/contrib/game-of-life.xtm
  • world_equal    xtlang    /digego/extempore/tree/v0.8.9/libs/contrib/game-of-life.xtm
  • world_generation    xtlang    /digego/extempore/tree/v0.8.9/libs/contrib/game-of-life.xtm
  • world_height    xtlang    /digego/extempore/tree/v0.8.9/libs/contrib/game-of-life.xtm
  • world_increment_generation    xtlang    /digego/extempore/tree/v0.8.9/libs/contrib/game-of-life.xtm
  • world_init    xtlang    /digego/extempore/tree/v0.8.9/libs/contrib/game-of-life.xtm
  • world_reset    xtlang    /digego/extempore/tree/v0.8.9/libs/contrib/game-of-life.xtm
  • world_set_generation    xtlang    /digego/extempore/tree/v0.8.9/libs/contrib/game-of-life.xtm
  • world_set_to_checkerboard    xtlang    /digego/extempore/tree/v0.8.9/libs/contrib/game-of-life.xtm
  • world_set_to_inverse    xtlang    /digego/extempore/tree/v0.8.9/libs/contrib/game-of-life.xtm
  • world_step    xtlang    /digego/extempore/tree/v0.8.9/libs/contrib/game-of-life.xtm
  • world_texture_setup    xtlang    /digego/extempore/tree/v0.8.9/examples/contrib/game-of-life.xtm
  • world_width    xtlang    /digego/extempore/tree/v0.8.9/libs/contrib/game-of-life.xtm
  • zcopy    xtlang    /digego/extempore/tree/v0.8.9/libs/base/base.xtm
  • zcopy    xtlang    /digego/extempore/tree/v0.8.9/libs/base/base.xtm
  • zcopy    xtlang    /digego/extempore/tree/v0.8.9/libs/base/base.xtm
  • zcopy    xtlang    /digego/extempore/tree/v0.8.9/libs/base/base.xtm
  • zcopy    xtlang    /digego/extempore/tree/v0.8.9/libs/base/base.xtm
  • zcopy    xtlang    /digego/extempore/tree/v0.8.9/libs/base/base.xtm
  • zcopy    xtlang    /digego/extempore/tree/v0.8.9/libs/base/base.xtm
  • zcopy    xtlang    /digego/extempore/tree/v0.8.9/libs/base/base.xtm
  • zcopy    xtlang    /digego/extempore/tree/v0.8.9/libs/base/base.xtm