]> git.jsancho.org Git - guile-irrlicht.git/commitdiff
aabbox3d-add-internal-point
authorJavier Sancho <jsf@jsancho.org>
Mon, 3 Feb 2020 15:08:57 +0000 (16:08 +0100)
committerJavier Sancho <jsf@jsancho.org>
Mon, 3 Feb 2020 15:08:57 +0000 (16:08 +0100)
irrlicht/core.scm

index a0cb97327691d68fe78d85d1939c0c7a7ded0245..683c89a47f7f53b34b3e6fddfe11b3d95e87f1b7 100644 (file)
@@ -22,7 +22,8 @@
   #:use-module (system foreign)
   #:use-module ((irrlicht bindings core) #:prefix ffi-core:)
   #:export (make-aabbox3df
-            aabbox3d-reset!))
+            aabbox3d-reset!
+            aabbox3d-add-internal-point!))
 
 (define (make-aabbox3df)
   (ffi-core:pointer->aabbox3df
@@ -32,3 +33,8 @@
   (ffi-core:aabbox3d-reset
    (ffi-core:aabbox3df->pointer box)
    (ffi-core:vector3df->pointer init-value)))
+
+(define (aabbox3d-add-internal-point! box point)
+  (ffi-core:aabbox3d-add-internal-point
+   (ffi-core:aabbox3df->pointer box)
+   (ffi-core:vector3df->pointer point)))