]> git.jsancho.org Git - guile-irrlicht.git/blobdiff - irrlicht/core.scm
create-device
[guile-irrlicht.git] / irrlicht / core.scm
diff --git a/irrlicht/core.scm b/irrlicht/core.scm
deleted file mode 100644 (file)
index 683c89a..0000000
+++ /dev/null
@@ -1,40 +0,0 @@
-;;; guile-irrlicht --- FFI bindings for Irrlicht Engine
-;;; Copyright (C) 2019 Javier Sancho <jsf@jsancho.org>
-;;;
-;;; This file is part of guile-irrlicht.
-;;;
-;;; Guile-irrlicht is free software; you can redistribute it and/or modify
-;;; it under the terms of the GNU Lesser General Public License as
-;;; published by the Free Software Foundation; either version 3 of the
-;;; License, or (at your option) any later version.
-;;;
-;;; Guile-irrlicht is distributed in the hope that it will be useful, but
-;;; WITHOUT ANY WARRANTY; without even the implied warranty of
-;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-;;; General Public License for more details.
-;;;
-;;; You should have received a copy of the GNU Lesser General Public
-;;; License along with guile-irrlicht.  If not, see
-;;; <http://www.gnu.org/licenses/>.
-
-
-(define-module (irrlicht core)
-  #:use-module (system foreign)
-  #:use-module ((irrlicht bindings core) #:prefix ffi-core:)
-  #:export (make-aabbox3df
-            aabbox3d-reset!
-            aabbox3d-add-internal-point!))
-
-(define (make-aabbox3df)
-  (ffi-core:pointer->aabbox3df
-   (make-c-struct ffi-core:aabbox3df '((0 0 0) (0 0 0)))))
-
-(define (aabbox3d-reset! box init-value)
-  (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)))