X-Git-Url: https://git.jsancho.org/?p=guile-irrlicht.git;a=blobdiff_plain;f=irrlicht%2Fscene.scm;h=2fb2f8ffb51ed6087c51a54d7f1982b6c46c8255;hp=260bf9b687f3dfd6969b444d357c448d40809eb9;hb=93655ae0d1feb1cdd292c952d89a992f1de0c073;hpb=061e994acc2fe7806d3911a715993c442e56f7ef diff --git a/irrlicht/scene.scm b/irrlicht/scene.scm index 260bf9b..2fb2f8f 100644 --- a/irrlicht/scene.scm +++ b/irrlicht/scene.scm @@ -108,6 +108,21 @@ #:jump-speed jump-speed #:invert-mouse invert-mouse #:make-active make-active))))) +(define-method (add-custom-scene-node! (scene-manager ) proc-render + proc-get-bounding-box proc-get-material-count + proc-get-material . rest) + (let-keywords rest #f + ((parent (make )) + (id -1) + (position '(0 0 0)) + (rotation '(0 0 0)) + (scale '(1 1 1))) + (let ((addCustomSceneNode (get-irrlicht-proc "addCustomSceneNode" scene-manager parent))) + (make + #:irr-pointer + (addCustomSceneNode scene-manager proc-render proc-get-bounding-box proc-get-material-count + proc-get-material parent id position rotation scale))))) + (define-method (add-octree-scene-node! (scene-manager ) (mesh ) . rest) @@ -148,7 +163,7 @@ filename))) (export add-animated-mesh-scene-node! add-camera-scene-node! - add-camera-scene-node-fps! add-octree-scene-node! draw-all get-mesh) + add-camera-scene-node-fps! add-custom-scene-node! add-octree-scene-node! draw-all get-mesh) ;; ISceneNode