From a56a205c111552251f341cacec237f42c54bd5d0 Mon Sep 17 00:00:00 2001 From: Javier Sancho Date: Sun, 17 May 2020 08:14:19 +0200 Subject: [PATCH] create-rotation-animator --- irrlicht.scm | 1 + irrlicht/scene.scm | 17 +++++++++++++++-- 2 files changed, 16 insertions(+), 2 deletions(-) diff --git a/irrlicht.scm b/irrlicht.scm index 7427cad..345a5c7 100644 --- a/irrlicht.scm +++ b/irrlicht.scm @@ -39,6 +39,7 @@ add-static-text! begin-scene create-device + create-rotation-animator drop! end-scene get-cursor-control 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 ) -- 2.39.5