]> git.jsancho.org Git - guile-irrlicht.git/commitdiff
set-frame-loop!
authorJavier Sancho <jsf@jsancho.org>
Fri, 22 May 2020 06:33:24 +0000 (08:33 +0200)
committerJavier Sancho <jsf@jsancho.org>
Fri, 22 May 2020 06:33:24 +0000 (08:33 +0200)
irrlicht.scm
irrlicht/scene.scm

index 794709390bcc77fbaa38c6a26c8552ccf254c92a..22f5a6032dcaf5ea6500ee96e6e9c02fa622e3f7 100644 (file)
@@ -95,6 +95,7 @@
                make-vertex3d
                reset-box3d!
                run
+               set-frame-loop!
                set-material!
                set-material-flag!
                set-material-texture!
index 3cdc6890fdd8e99dce1c7c47cacaeec46133347e..a20b78c0ef564d5bebc33183ef64d1bb5038c29f 100644 (file)
 (define-class <animated-mesh-scene-node> (<scene-node>)
   (irr-class #:init-value "IAnimatedMeshSceneNode"))
 
+(define-method (set-frame-loop! (node <animated-mesh-scene-node>) begin end)
+  (let ((setFrameLoop (get-irrlicht-proc "setFrameLoop" node)))
+    (setFrameLoop node begin end)))
+
 (define-method (set-md2-animation! (node <animated-mesh-scene-node>) anim)
   ((get-irrlicht-proc "setMD2Animation" node)
    node
    anim))
 
-(export <animated-mesh-scene-node> set-md2-animation!)
+(export <animated-mesh-scene-node> set-frame-loop! set-md2-animation!)
 
 
 ;; ICameraSceneNode