]> git.jsancho.org Git - guile-irrlicht.git/commitdiff
create-fly-straight-animator
authorJavier Sancho <jsf@jsancho.org>
Fri, 22 May 2020 06:29:27 +0000 (08:29 +0200)
committerJavier Sancho <jsf@jsancho.org>
Fri, 22 May 2020 06:29:27 +0000 (08:29 +0200)
irrlicht.scm
irrlicht/scene.scm

index 964c91a17c3b50d9f0633365d88ef451ebd20f26..794709390bcc77fbaa38c6a26c8552ccf254c92a 100644 (file)
@@ -70,6 +70,7 @@
                begin-scene
                create-device
                create-fly-circle-animator
+               create-fly-straight-animator
                create-rotation-animator
                draw-vertex-primitive-list
                drop!
index cfb4da2e5509dab6b84260277cc660090f170441..3cdc6890fdd8e99dce1c7c47cacaeec46133347e 100644 (file)
       (createFlyCircleAnimator scene-manager center radius speed direction start-position
                                radius-ellipsoid))))
 
+(define-method (create-fly-straight-animator (scene-manager <scene-manager>)
+                                             start-point end-point time-for-way . rest)
+  (let-keywords rest #f
+        ((loop #f)
+         (pingpong #f))
+    (let ((createFlyStraightAnimator (get-irrlicht-proc "createFlyStraightAnimator" scene-manager)))
+      (createFlyStraightAnimator scene-manager start-point end-point time-for-way
+                                 loop pingpong))))
+
 (define-method (create-rotation-animator (scene-manager <scene-manager>) rotation-speed)
   (let ((createRotationAnimator (get-irrlicht-proc "createRotationAnimator" scene-manager)))
     (createRotationAnimator scene-manager rotation-speed)))
 
 (export <scene-manager> add-animated-mesh-scene-node! add-cube-scene-node! add-camera-scene-node!
         add-camera-scene-node-fps! add-custom-scene-node! add-octree-scene-node!
-        add-sphere-scene-node! create-fly-circle-animator create-rotation-animator draw-all
-        get-root-scene-node get-mesh)
+        add-sphere-scene-node! create-fly-circle-animator create-fly-straight-animator
+        create-rotation-animator draw-all get-root-scene-node get-mesh)
 
 
 ;; ISceneNode