From: Javier Sancho Date: Fri, 22 May 2020 15:16:16 +0000 (+0200) Subject: get-timer get-time X-Git-Url: https://git.jsancho.org/?a=commitdiff_plain;h=007927f5f96027e568af5040b8d2ea3c3681fe51;p=guile-irrlicht.git get-timer get-time --- diff --git a/irrlicht.scm b/irrlicht.scm index 31416ce..065268c 100644 --- a/irrlicht.scm +++ b/irrlicht.scm @@ -54,6 +54,7 @@ + ;; methods @@ -89,6 +90,8 @@ get-root-scene-node get-scene-manager get-texture + get-time + get-timer get-video-driver is-window-active? make-box3d diff --git a/irrlicht/device.scm b/irrlicht/device.scm index c922cec..6363686 100644 --- a/irrlicht/device.scm +++ b/irrlicht/device.scm @@ -70,6 +70,10 @@ (let ((getSceneManager (get-irrlicht-proc "getSceneManager" device))) (getSceneManager device))) +(define-method (get-timer (device )) + (let ((getTimer (get-irrlicht-proc "getTimer" device))) + (getTimer device))) + (define-method (get-video-driver (device )) (let ((getVideoDriver (get-irrlicht-proc "getVideoDriver" device))) (getVideoDriver device))) @@ -90,4 +94,5 @@ (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! yield-device) + get-scene-manager get-timer get-video-driver is-window-active? run set-window-caption! + yield-device) diff --git a/irrlicht/irr.scm b/irrlicht/irr.scm index 56bc6fa..0f9180f 100644 --- a/irrlicht/irr.scm +++ b/irrlicht/irr.scm @@ -62,3 +62,14 @@ (irr-class #:init-value "SKeyMap")) (export ) + + +;; ITimer +(define-class () + (irr-class #:init-value "ITimer")) + +(define-method (get-time (timer )) + (let ((getTime (get-irrlicht-proc "getTime" timer))) + (getTime timer))) + +(export get-time)