]> git.jsancho.org Git - guile-irrlicht.git/commitdiff
yield-device
authorJavier Sancho <jsf@jsancho.org>
Fri, 15 May 2020 06:23:30 +0000 (08:23 +0200)
committerJavier Sancho <jsf@jsancho.org>
Fri, 15 May 2020 06:23:30 +0000 (08:23 +0200)
examples/02-quake3map.scm
irrlicht.scm
irrlicht/device.scm

index 208740127c5ba01c2d7ab41352e35911bf8499b6..4d42221d0519f10d9e16fe4f87f83c90b8878446 100644 (file)
@@ -89,7 +89,7 @@
                (set-window-caption! device caption))
              (set! last-fps fps))))
         (else
-         ((@ (irrlicht) yield) device))))
+         (yield-device device))))
 
 ;; delete device
 (drop! device)
index e823ac038a0dbcff2580814c4932a1e8e5ad4a19..9724a80a50a13fd311baeada9e51c5e4340be74d 100644 (file)
@@ -55,7 +55,8 @@
                set-md2-animation!
                set-position!
                set-visible!
-               set-window-caption!))
+               set-window-caption!
+               yield-device))
 
 ;; Merged methods have to be exported apart
 (re-export draw-all)
index a9aa82ba45e3e14418a087de1001b3760e327734..b18a58e690c49870a4b340f33b86ee6b76008757 100644 (file)
@@ -91,5 +91,9 @@
   ((get-irrlicht-proc "setWindowCaption" device)
    device text))
 
+(define-method (yield-device (device <irrlicht-device>))
+  (let ((yield (get-irrlicht-proc "yield" device)))
+    (yield device)))
+
 (export create-device get-cursor-control get-file-system get-gui-environment get-scene-manager
-        get-video-driver is-window-active? run set-window-caption!)
+        get-video-driver is-window-active? run set-window-caption! yield-device)