From: Javier Sancho Date: Fri, 15 May 2020 05:44:10 +0000 (+0200) Subject: set-position! X-Git-Url: https://git.jsancho.org/?a=commitdiff_plain;h=b66897512cbe56969f0a9b2d4043fc8764c35e19;p=guile-irrlicht.git set-position! --- diff --git a/irrlicht.scm b/irrlicht.scm index 6508537..b347841 100644 --- a/irrlicht.scm +++ b/irrlicht.scm @@ -49,6 +49,7 @@ set-material-flag! set-material-texture! set-md2-animation! + set-position! set-window-caption!)) ;; Merged methods have to be exported apart diff --git a/irrlicht/foreign.scm b/irrlicht/foreign.scm index aaac04f..f6e2036 100644 --- a/irrlicht/foreign.scm +++ b/irrlicht/foreign.scm @@ -28,8 +28,6 @@ (define remote-proc-table (make-hash-table)) (define (get-irrlicht-proc proc-name . objects) - (format #t "Objects: ~a ~a~%" objects irr-class) - (format #t "Classes: ~a~%" (map irr-class objects)) (let* ((name (if (null? objects) proc-name (let ((classes (map irr-class objects))) diff --git a/irrlicht/scene.scm b/irrlicht/scene.scm index 6a6486f..0d0618f 100644 --- a/irrlicht/scene.scm +++ b/irrlicht/scene.scm @@ -144,7 +144,11 @@ texture-layer texture)) -(export set-material-flag! set-material-texture!) +(define-method (set-position! (node ) new-pos) + (let ((setPosition (get-irrlicht-proc "setPosition" node))) + (setPosition node new-pos))) + +(export set-material-flag! set-material-texture! set-position!) ;; IAnimatedMeshSceneNode