X-Git-Url: https://git.jsancho.org/?p=guile-irrlicht.git;a=blobdiff_plain;f=irrlicht%2Fscene.scm;h=45b2c9b4445aa69f21267e5dde15e527ee50e8e7;hp=6c55a3d0cda9c2c7729a84484c216e851ed4d294;hb=a56a205c111552251f341cacec237f42c54bd5d0;hpb=a880a7401ee591eaff7d1c32bf14c1af977f7776 diff --git a/irrlicht/scene.scm b/irrlicht/scene.scm index 6c55a3d..45b2c9b 100644 --- a/irrlicht/scene.scm +++ b/irrlicht/scene.scm @@ -151,6 +151,12 @@ (addOctreeSceneNode scene-manager mesh parent id minimal-polys-per-node also-add-if-mesh-pointer-zero))))) +(define-method (create-rotation-animator (scene-manager ) rotation-speed) + (let ((createRotationAnimator (get-irrlicht-proc "createRotationAnimator" scene-manager))) + (make + #:irr-pointer + (createRotationAnimator scene-manager rotation-speed)))) + (define-method (draw-all (scene-manager )) ((get-irrlicht-proc "drawAll" scene-manager) scene-manager)) @@ -167,8 +173,8 @@ (make #:irr-pointer (getRootSceneNode scene-manager)))) (export add-animated-mesh-scene-node! add-camera-scene-node! - add-camera-scene-node-fps! add-custom-scene-node! add-octree-scene-node! draw-all - get-root-scene-node get-mesh) + add-camera-scene-node-fps! add-custom-scene-node! add-octree-scene-node! + create-rotation-animator draw-all get-root-scene-node get-mesh) ;; ISceneNode @@ -218,3 +224,10 @@ (irr-class #:init-value "IMeshSceneNode")) (export ) + + +;; ISceneNodeAnimator +(define-class ( ) + (irr-class #:init-value "ISceneNodeAnimator")) + +(export )