move_particles   xtlang


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

Implementation

(bind-func move_particles
  "move the particles_verts according to their velocities"
  (lambda (np:i64 step:float)
    (let ((p:float* null))
      (doloop (i np)
        (set! p (pref-ptr particles_verts (* i 4)))
        ;; update x pos
        (pset! p 0 (% (+ (pref p 0)
                         (* (pref p 2) step))
                      1.0))
        ;; update y pos
        (pset! p 1 (% (+ (pref p 1)
                         (* (pref p 3) step))
                      1.0))))))


Back to Index

Similar Entries

  • Widget_type_remove_flags    xtlang    /digego/extempore/tree/v0.8.9/libs/external/gui.xtm
  • aiProcess_RemoveComponent    scheme    /digego/extempore/tree/v0.8.9/libs/external/assimp.xtm
  • aiProcess_RemoveRedundantMaterials    scheme    /digego/extempore/tree/v0.8.9/libs/external/assimp.xtm
  • analogue_remove_file    xtlang    /digego/extempore/tree/v0.8.9/libs/core/instruments/analogue.xtm
  • cerberus_remove_file    xtlang    /digego/extempore/tree/v0.8.9/libs/core/instruments/cerberus.xtm
  • cl:remove    scheme    /digego/extempore/tree/v0.8.9/runtime/scheme.xtm
  • cl:remove-duplicates    scheme    /digego/extempore/tree/v0.8.9/runtime/scheme.xtm
  • cl:remove-if    scheme    /digego/extempore/tree/v0.8.9/runtime/scheme.xtm
  • cl:remove-if-not    scheme    /digego/extempore/tree/v0.8.9/runtime/scheme.xtm
  • create_particles_shader    xtlang    /digego/extempore/tree/v0.8.9/examples/external/shader-tutorials/particles.xtm
  • distribute_particles    xtlang    /digego/extempore/tree/v0.8.9/examples/external/shader-tutorials/particles.xtm
  • gl_draw_particles    xtlang    /digego/extempore/tree/v0.8.9/examples/external/shader-tutorials/particles.xtm
  • impc:ti:remove-polyfunc-candidate    scheme    /digego/extempore/tree/v0.8.9/runtime/llvmti.xtm
  • impc:ti:remove-single-element-lists    scheme    /digego/extempore/tree/v0.8.9/runtime/llvmti.xtm
  • is_touch_move    xtlang    /digego/extempore/tree/v0.8.9/libs/contrib/win32.xtm
  • move_triangle    xtlang    /digego/extempore/tree/v0.8.9/examples/external/shader-tutorials/triangle.xtm
  • particles-frag    scheme    /digego/extempore/tree/v0.8.9/libs/external/graphics-pipeline-scm.xtm
  • particles-frag    scheme    /digego/extempore/tree/v0.8.9/libs/external/particles_vbo.xtm
  • particles-vert    scheme    /digego/extempore/tree/v0.8.9/libs/external/graphics-pipeline-scm.xtm
  • particles-vert    scheme    /digego/extempore/tree/v0.8.9/libs/external/particles_vbo.xtm
  • pc:move-chord    scheme    /digego/extempore/tree/v0.8.9/libs/core/pc_ivl.xtm
  • remove    scheme    /digego/extempore/tree/v0.8.9/runtime/init.xtm
  • remove-all    scheme    /digego/extempore/tree/v0.8.9/runtime/scheme.xtm
  • remove-first    scheme    /digego/extempore/tree/v0.8.9/runtime/scheme.xtm
  • remove-func    macro    /digego/extempore/tree/v0.8.9/runtime/llvmti.xtm
  • set-data-particles    xtlang    /digego/extempore/tree/v0.8.9/examples/contrib/kinect_fire.xtm
  • sys_dir_remove    xtlang    /digego/extempore/tree/v0.8.9/libs/external/system.xtm
  • sys_file_remove    xtlang    /digego/extempore/tree/v0.8.9/libs/external/system.xtm
  • sys_g_remove    xtlang    /digego/extempore/tree/v0.8.9/libs/external/glib.xtm