(define-class <gui-environment> (<reference-counted>)
(irr-class #:init-value "IGUIEnvironment"))
+(define-method (add-image! (gui-environment <gui-environment>) image pos . rest)
+ (let-keywords rest #f
+ ((use-alpha-channel #t)
+ (parent (make <gui-element>))
+ (id -1)
+ (text ""))
+ (let ((addImage (get-irrlicht-proc "addImage" gui-environment parent)))
+ (addImage gui-environment image pos use-alpha-channel parent id text))))
+
(define-method (add-static-text! (gui-environment <gui-environment>) text rectangle . rest)
(let-keywords rest #f
((border #f)
((get-irrlicht-proc "drawAll" gui-environment)
gui-environment))
-(export <gui-environment> add-static-text! draw-all)
+(export <gui-environment> add-image! add-static-text! draw-all)
;; IGUIStaticText
(irr-class #:init-value "IGUIStaticText"))
(export <gui-static-text>)
+
+
+;; IGUIImage
+(define-class <gui-image> (<gui-element>)
+ (irr-class #:init-value "IGUIImage"))
+
+(export <gui-image>)