From: Javier Sancho Date: Sun, 17 May 2020 07:14:00 +0000 (+0200) Subject: get-absolute-transformation X-Git-Url: https://git.jsancho.org/?a=commitdiff_plain;h=0c415f2f23b5351bdd8e3901ccc29073fe98d9f6;p=guile-irrlicht.git get-absolute-transformation --- diff --git a/irrlicht.scm b/irrlicht.scm index 8fa8ccd..e5c492d 100644 --- a/irrlicht.scm +++ b/irrlicht.scm @@ -43,6 +43,7 @@ create-rotation-animator drop! end-scene + get-absolute-transformation get-cursor-control get-file-system get-fps diff --git a/irrlicht/scene.scm b/irrlicht/scene.scm index e084ccc..425d01e 100644 --- a/irrlicht/scene.scm +++ b/irrlicht/scene.scm @@ -192,6 +192,10 @@ (let ((addAnimator (get-irrlicht-proc "addAnimator" node))) (addAnimator node animator))) +(define-method (get-absolute-transformation (node )) + (let ((getAbsoluteTransformation (get-irrlicht-proc "getAbsoluteTransformation" node))) + (getAbsoluteTransformation node))) + (define-method (set-material-flag! (node ) flag new-value) ((get-irrlicht-proc "setMaterialFlag" node) node @@ -208,7 +212,8 @@ (let ((setPosition (get-irrlicht-proc "setPosition" node))) (setPosition node new-pos))) -(export add-animator! set-material-flag! set-material-texture! set-position!) +(export add-animator! get-absolute-transformation set-material-flag! + set-material-texture! set-position!) ;; IAnimatedMeshSceneNode