]> git.jsancho.org Git - guile-irrlicht.git/commitdiff
set-md2-animation!
authorJavier Sancho <jsf@jsancho.org>
Mon, 11 May 2020 11:54:06 +0000 (13:54 +0200)
committerJavier Sancho <jsf@jsancho.org>
Mon, 11 May 2020 11:54:06 +0000 (13:54 +0200)
irrlicht.scm
irrlicht/scene.scm

index c9d88672fc64ece5d911f0a4ab105cbdd83e70f7..6c0fb98a96fa4af443ade6de9def3b2e7b623982 100644 (file)
@@ -32,4 +32,5 @@
                get-video-driver
                is-empty?
                set-material-flag!
+               set-md2-animation!
                set-window-caption!))
index ee47d4c57fccee84f9beab104ff3ae63bb15c2a7..9ecb782ddddd3181c8d36a693982e312b718077b 100644 (file)
@@ -92,4 +92,9 @@
 (define-class <animated-mesh-scene-node> (<scene-node>)
   (irr-class #:init-value "IAnimatedMeshSceneNode" #:getter irr-class))
 
-(export <animated-mesh-scene-node>)
+(define-method (set-md2-animation! (node <animated-mesh-scene-node>) anim)
+  ((get-irrlicht-proc "setMD2Animation" node)
+   (irr-pointer node)
+   anim))
+
+(export <animated-mesh-scene-node> set-md2-animation!)