From: Javier Sancho Date: Sat, 23 May 2020 06:43:46 +0000 (+0200) Subject: set-resizable! X-Git-Url: https://git.jsancho.org/?a=commitdiff_plain;h=f5aa151d55cb005c0bda47b5101390447e5005ad;p=guile-irrlicht.git set-resizable! --- 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)