]> git.jsancho.org Git - guile-irrlicht.git/commitdiff
<timer> get-timer get-time
authorJavier Sancho <jsf@jsancho.org>
Fri, 22 May 2020 15:16:16 +0000 (17:16 +0200)
committerJavier Sancho <jsf@jsancho.org>
Fri, 22 May 2020 15:16:16 +0000 (17:16 +0200)
irrlicht.scm
irrlicht/device.scm
irrlicht/irr.scm

index 31416ceac874ef33760f68fdef5563eeb28e8fef..065268c71188f2fd11c900c03bd47737d295cd93 100644 (file)
@@ -54,6 +54,7 @@
                <scene-node>
                <scene-node-animator>
                <texture>
+               <timer>
                <vertex3d>
                <video-driver>
                ;; 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
index c922cece2076b139f62b51f36fd0e51cb2129a2b..63636869a621ceb4c64f48657af23f8a62793254 100644 (file)
   (let ((getSceneManager (get-irrlicht-proc "getSceneManager" device)))
     (getSceneManager device)))
 
+(define-method (get-timer (device <irrlicht-device>))
+  (let ((getTimer (get-irrlicht-proc "getTimer" device)))
+    (getTimer device)))
+
 (define-method (get-video-driver (device <irrlicht-device>))
   (let ((getVideoDriver (get-irrlicht-proc "getVideoDriver" device)))
     (getVideoDriver device)))
@@ -90,4 +94,5 @@
     (yield device)))
 
 (export <irrlicht-device> 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)
index 56bc6fa7b44afce40bc53c7c76acaed5c7bdaddb..0f9180f937a90b641a49ea3aa71ca81531f82da6 100644 (file)
   (irr-class #:init-value "SKeyMap"))
 
 (export <key-map>)
+
+
+;; ITimer
+(define-class <timer> (<reference-counted>)
+  (irr-class #:init-value "ITimer"))
+
+(define-method (get-time (timer <timer>))
+  (let ((getTime (get-irrlicht-proc "getTime" timer)))
+    (getTime timer)))
+
+(export <timer> get-time)