From f5aa151d55cb005c0bda47b5101390447e5005ad Mon Sep 17 00:00:00 2001 From: Javier Sancho Date: Sat, 23 May 2020 08:43:46 +0200 Subject: [PATCH] set-resizable! --- irrlicht.scm | 1 + irrlicht/device.scm | 8 ++++++-- irrlicht/irr.scm | 12 ++++++------ 3 files changed, 13 insertions(+), 8 deletions(-) diff --git a/irrlicht.scm b/irrlicht.scm index 80662cf..9c6a8a9 100644 --- a/irrlicht.scm +++ b/irrlicht.scm @@ -109,6 +109,7 @@ set-md2-animation! set-override-color! set-position! + set-resizable! set-rotation! set-scale! set-transform! diff --git a/irrlicht/device.scm b/irrlicht/device.scm index 9f17902..8a64fca 100644 --- a/irrlicht/device.scm +++ b/irrlicht/device.scm @@ -81,6 +81,10 @@ (define-method (run (device )) ((get-irrlicht-proc "run" device) device)) +(define-method (set-resizable! (device ) resize) + (let ((setResizable (get-irrlicht-proc "setResizable" device))) + (setResizable device resize))) + (define-method (set-window-caption! (device ) text) ((get-irrlicht-proc "setWindowCaption" device) device text)) @@ -90,5 +94,5 @@ (yield device))) (export create-device get-cursor-control get-file-system get-gui-environment - get-scene-manager get-timer 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-resizable! + set-window-caption! yield-device) diff --git a/irrlicht/irr.scm b/irrlicht/irr.scm index 037b459..e105ff7 100644 --- a/irrlicht/irr.scm +++ b/irrlicht/irr.scm @@ -40,16 +40,16 @@ (irr-class #:init-value "SEvent")) (define-method (get-event-key (event )) - (let ((SEvent_SKeyInput_Key (get-irrlicht-proc "SKeyInput_Key" event))) - (SEvent_SKeyInput_Key event))) + (let ((SKeyInput_Key (get-irrlicht-proc "SKeyInput_Key" event))) + (SKeyInput_Key event))) (define-method (get-event-key-pressed (event )) - (let ((SEvent_SKeyInput_PressedDown (get-irrlicht-proc "SKeyInput_PressedDown" event))) - (SEvent_SKeyInput_PressedDown event))) + (let ((SKeyInput_PressedDown (get-irrlicht-proc "SKeyInput_PressedDown" event))) + (SKeyInput_PressedDown event))) (define-method (get-event-type (event )) - (let ((SEvent_EventType (get-irrlicht-proc "EventType" event))) - (SEvent_EventType event))) + (let ((EventType (get-irrlicht-proc "EventType" event))) + (EventType event))) (export get-event-key get-event-key-pressed get-event-type) -- 2.39.5