From bd94c6dfd60f2a5bdc49bf6bdc72deecf847799b Mon Sep 17 00:00:00 2001 From: Javier Sancho Date: Sat, 23 May 2020 08:53:26 +0200 Subject: [PATCH] get-font --- irrlicht.scm | 2 ++ irrlicht/gui.scm | 13 ++++++++++++- 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/irrlicht.scm b/irrlicht.scm index ec412e2..e5a175b 100644 --- a/irrlicht.scm +++ b/irrlicht.scm @@ -42,6 +42,7 @@ + @@ -85,6 +86,7 @@ get-event-key-pressed get-event-type get-file-system + get-font get-fps get-gui-environment get-mesh diff --git a/irrlicht/gui.scm b/irrlicht/gui.scm index 204c97d..5c21293 100644 --- a/irrlicht/gui.scm +++ b/irrlicht/gui.scm @@ -73,11 +73,15 @@ ((get-irrlicht-proc "drawAll" gui-environment) gui-environment)) +(define-method (get-font (gui-environment ) filename) + (let ((getFont (get-irrlicht-proc "getFont" gui-environment))) + (getFont gui-environment filename))) + (define-method (get-skin (gui-environment )) (let ((getSkin (get-irrlicht-proc "getSkin" gui-environment))) (getSkin gui-environment))) -(export add-image! add-static-text! draw-all get-skin) +(export add-image! add-static-text! draw-all get-font get-skin) ;; IGUIStaticText @@ -103,3 +107,10 @@ (irr-class #:init-value "IGUISkin")) (export ) + + +;; IGUIFont +(define-class () + (irr-class #:init-value "IGUIFont")) + +(export ) -- 2.39.5