X-Git-Url: https://git.jsancho.org/?a=blobdiff_plain;f=examples%2F03-custom-scene-node.scm;h=198de3ded6d8a94cae48617681b63c242aff3e34;hb=HEAD;hp=0476e729b149c02dfc5859439049b79e6d504dc7;hpb=df1088b80d2c90a390b0229ce5c6ffcc7665fda4;p=guile-irrlicht.git diff --git a/examples/03-custom-scene-node.scm b/examples/03-custom-scene-node.scm index 0476e72..198de3d 100644 --- a/examples/03-custom-scene-node.scm +++ b/examples/03-custom-scene-node.scm @@ -53,8 +53,6 @@ (create-device #:device-type device-type #:window-size '(640 480))) -(when (not device) - (exit #f)) ;; create engine and camera (set-window-caption! device "Custom Scene Node - Irrlicht Engine Demo") @@ -75,10 +73,10 @@ (make-vertex3d '(-10 0 -10) '(0 0 1) '(255 0 255 0) '(0 0)))) (define material (make-material #:wireframe #f #:lighting #f)) -(reset-box3d! box (vertex3d-position (car vertices))) +(reset-box3d! box (get-position (car vertices))) (for-each (lambda (vertex) - (box3d-add-internal-point! box (vertex3d-position vertex))) + (add-internal-point! box (get-position vertex))) (cdr vertices)) (define (custom-render)