X-Git-Url: https://git.jsancho.org/?a=blobdiff_plain;f=irrlicht%2Fbindings%2Fcore.scm;h=140506b47a0ab40414007ed2280f920f67e7875c;hb=4eb7b8f04ad278d49d632d62030b5fe648e3b97a;hp=e0a13afdcf3ae6810bc88ad9f193390e049611fb;hpb=2a0373b3eda4407e2e41a4e8fc3a7333bb789a89;p=guile-irrlicht.git diff --git a/irrlicht/bindings/core.scm b/irrlicht/bindings/core.scm index e0a13af..140506b 100644 --- a/irrlicht/bindings/core.scm +++ b/irrlicht/bindings/core.scm @@ -51,11 +51,21 @@ (make-c-struct vector3df data)) ;; aabbox3df struct +(define-wrapped-pointer-type aabbox3df-type + aabbox3df? + pointer->aabbox3df aabbox3df->pointer + (lambda (box port) + (format port "#" + (pointer-address (aabbox3df->pointer box))))) + +(export aabbox3df->pointer) + (define-public aabbox3df (list vector3df vector3df)) -(define-public (aabbox3df->pointer data) - (make-c-struct aabbox3df data)) +(define-public (make-aabbox3df) + (pointer->aabbox3df + (make-c-struct aabbox3df '((0 0 0) (0 0 0))))) (define-foreign aabbox3d-add-internal-point void "irr_core_aabbox3d_addInternalPoint" (list '* '*))