From d15546e6b9eae8c0ffdc67b88b6f95e36a5fb898 Mon Sep 17 00:00:00 2001 From: Javier Sancho Date: Fri, 22 May 2020 08:43:59 +0200 Subject: [PATCH] set-scale! --- irrlicht.scm | 1 + irrlicht/scene.scm | 6 +++++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/irrlicht.scm b/irrlicht.scm index 75e03f7..e566f66 100644 --- a/irrlicht.scm +++ b/irrlicht.scm @@ -102,6 +102,7 @@ set-material-texture! set-md2-animation! set-position! + set-scale! set-transform! set-visible! set-window-caption! diff --git a/irrlicht/scene.scm b/irrlicht/scene.scm index 34853d3..bfff47d 100644 --- a/irrlicht/scene.scm +++ b/irrlicht/scene.scm @@ -239,8 +239,12 @@ (let ((setPosition (get-irrlicht-proc "setPosition" node))) (setPosition node new-pos))) +(define-method (set-scale! (node ) scale) + (let ((setScale (get-irrlicht-proc "setScale" node))) + (setScale node scale))) + (export add-animator! get-absolute-transformation set-material-flag! - set-material-texture! set-position!) + set-material-texture! set-position! set-scale!) ;; IAnimatedMeshSceneNode -- 2.39.5