X-Git-Url: https://git.jsancho.org/?a=blobdiff_plain;f=irrlicht%2Fio.scm;h=0276982dc932560e8d7221c5fd7d9c11b727b4c3;hb=fc3be36ca8e29c32e1758ae99c9982aa287d8920;hp=0229ac32316b68e7a26c784da7da1a931152f837;hpb=98052b04792129db97286fdd77ef3b0de8912286;p=guile-irrlicht.git diff --git a/irrlicht/io.scm b/irrlicht/io.scm index 0229ac3..0276982 100644 --- a/irrlicht/io.scm +++ b/irrlicht/io.scm @@ -20,12 +20,38 @@ (define-module (irrlicht io) #:use-module (oop goops) + #:use-module (ice-9 optargs) #:use-module (irrlicht foreign) #:use-module (irrlicht irr)) ;; IAttributeExchangingObject (define-class () - (irr-class #:init-value "IAttributeExchangingObject" #:getter irr-class)) + (irr-class #:init-value "IAttributeExchangingObject")) (export ) + + +;;IFileArchive +(define-class () + (irr-class #:init-value "IFileArchive")) + +(export ) + + +;;IFileSystem +(define-class () + (irr-class #:init-value "IFileSystem")) + +(define-method (add-file-archive! (file-system ) filename . rest) + (let-keywords rest #f + ((ignore-case #t) + (ignore-paths #t) + (archive-type 'unknown) + (password "") + (ret-archive (make ))) + (let ((addFileArchive (get-irrlicht-proc "addFileArchive" file-system))) + (addFileArchive + file-system filename ignore-case ignore-paths archive-type password ret-archive)))) + +(export add-file-archive!)