]> git.jsancho.org Git - guile-irrlicht.git/blobdiff - irrlicht/bindings/core.scm
Wrapped aabbox3df type
[guile-irrlicht.git] / irrlicht / bindings / core.scm
index e0a13afdcf3ae6810bc88ad9f193390e049611fb..59b05af4e9fcd56c63f3b0a6bec6e01c8bda1340 100644 (file)
   (make-c-struct vector3df data))
 
 ;; aabbox3df struct
-(define-public aabbox3df
+(define-wrapped-pointer-type aabbox3df
+  aabbox3df?
+  pointer->aabbox3df aabbox3df->pointer
+  (lambda (box port)
+    (format port "#<aabbox3df ~x>"
+            (pointer-address (aabbox3df->pointer box)))))
+
+(export aabbox3df->pointer)
+
+(define aabbox3df-type
   (list vector3df vector3df))
 
-(define-public (aabbox3df->pointer data)
-  (make-c-struct aabbox3df data))
+(define-public (make-aabbox3df)
+  (pointer->aabbox3df
+   (make-c-struct aabbox3df-type '((0 0 0) (0 0 0)))))
 
 (define-foreign aabbox3d-add-internal-point
   void "irr_core_aabbox3d_addInternalPoint" (list '* '*))