X-Git-Url: https://git.jsancho.org/?a=blobdiff_plain;f=examples%2F01-hello-world.scm;h=c320ed3af560ff81bb835129b3e75abbf61c2d77;hb=384a8fb56d8500dc3551085191a39c9da70e221c;hp=b480c8934ccbac60ffc0361d3b2253e08649a58d;hpb=9137f8fdb1e89ffdec1fb498084f71e92e7f02a9;p=guile-irrlicht.git diff --git a/examples/01-hello-world.scm b/examples/01-hello-world.scm index b480c89..c320ed3 100644 --- a/examples/01-hello-world.scm +++ b/examples/01-hello-world.scm @@ -29,8 +29,6 @@ (create-device #:device-type 'software #:window-size '(640 480))) -(when (not device) - (exit #f)) (set-window-caption! device "Hello World! - Irrlicht Engine Demo") @@ -47,15 +45,10 @@ ;; load a Quake2 model (define mesh (get-mesh scene-manager "media/sydney.md2")) -(when (not mesh) - (drop! device) - (exit #f)) - (define node (add-animated-mesh-scene-node! scene-manager mesh)) -(when node - (set-material-flag! node 'lighting #f) - (set-md2-animation! node 'stand) - (set-material-texture! node 0 (get-texture driver "media/sydney.bmp"))) +(set-material-flag! node 'lighting #f) +(set-md2-animation! node 'stand) +(set-material-texture! node 0 (get-texture driver "media/sydney.bmp")) ;; place camera (add-camera-scene-node! scene-manager #:position '(0 30 -40) #:lookat '(0 5 0))