From 875fe9360ac8c12c78a4dc1a7d6549e5900cb402 Mon Sep 17 00:00:00 2001 From: Javier Sancho Date: Fri, 15 May 2020 08:19:51 +0200 Subject: [PATCH] get-fps --- irrlicht.scm | 1 + irrlicht/video.scm | 6 +++++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/irrlicht.scm b/irrlicht.scm index 8cc7659..e823ac0 100644 --- a/irrlicht.scm +++ b/irrlicht.scm @@ -40,6 +40,7 @@ end-scene get-cursor-control get-file-system + get-fps get-gui-environment get-mesh get-name diff --git a/irrlicht/video.scm b/irrlicht/video.scm index 7dd433d..1fa6d64 100644 --- a/irrlicht/video.scm +++ b/irrlicht/video.scm @@ -55,6 +55,10 @@ ((get-irrlicht-proc "endScene" video-driver) video-driver)) +(define-method (get-fps (video-driver )) + (let ((getFPS (get-irrlicht-proc "getFPS" video-driver))) + (getFPS video-driver))) + (define-method (get-name (video-driver )) (let ((getName (get-irrlicht-proc "getName" video-driver))) (getName video-driver))) @@ -66,4 +70,4 @@ video-driver filename))) -(export begin-scene end-scene get-name get-texture) +(export begin-scene end-scene get-fps get-name get-texture) -- 2.39.5