From 6bcbb2cefb0e69afae9b1de828b85f506b1bef19 Mon Sep 17 00:00:00 2001 From: Javier Sancho Date: Tue, 12 May 2020 09:22:20 +0200 Subject: [PATCH] drop! --- irrlicht.scm | 2 ++ irrlicht/irr.scm | 6 +++++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/irrlicht.scm b/irrlicht.scm index 640b7f5..a51b60c 100644 --- a/irrlicht.scm +++ b/irrlicht.scm @@ -23,6 +23,7 @@ #:use-module (irrlicht base) #:use-module (irrlicht device) #:use-module (irrlicht gui) + #:use-module (irrlicht irr) #:use-module (irrlicht scene) #:use-module (irrlicht video) #:duplicates (merge-generics) @@ -31,6 +32,7 @@ add-static-text! begin-scene create-device + drop! end-scene get-gui-environment get-mesh diff --git a/irrlicht/irr.scm b/irrlicht/irr.scm index 2706793..16cbf0d 100644 --- a/irrlicht/irr.scm +++ b/irrlicht/irr.scm @@ -28,7 +28,11 @@ (define-class () (irr-class #:init-value "IReferenceCounted" #:getter irr-class)) -(export ) +(define-method (drop! (obj )) + ((get-irrlicht-proc "drop" obj) + (irr-pointer obj))) + +(export drop!) ;; IEventReceiver -- 2.39.5