From 007927f5f96027e568af5040b8d2ea3c3681fe51 Mon Sep 17 00:00:00 2001 From: Javier Sancho Date: Fri, 22 May 2020 17:16:16 +0200 Subject: [PATCH 1/1] get-timer get-time --- irrlicht.scm | 3 +++ irrlicht/device.scm | 7 ++++++- irrlicht/irr.scm | 11 +++++++++++ 3 files changed, 20 insertions(+), 1 deletion(-) 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) -- 2.39.5