]> git.jsancho.org Git - guile-irrlicht.git/commitdiff
get-color set-color!
authorJavier Sancho <jsf@jsancho.org>
Sat, 23 May 2020 07:37:09 +0000 (09:37 +0200)
committerJavier Sancho <jsf@jsancho.org>
Sat, 23 May 2020 07:37:09 +0000 (09:37 +0200)
irrlicht.scm
irrlicht/gui.scm

index 8bd94b429d8a7923abb8d8161ffcf058884e8e3c..5076c2a9aba72d76cb6d0e235ac7525018134885 100644 (file)
@@ -86,6 +86,7 @@
                end-scene
                get-absolute-transformation
                get-built-in-font
+               get-color
                get-cursor-control
                get-event-key
                get-event-key-pressed
                reset-box3d!
                run
                set-animation-speed!
+               set-color!
                set-font!
                set-frame-loop!
                set-material!
index 9f53049b3de7774375bdfc31ed766f3deb46725a..ca705d528913035bf016fa6782052f4b2a596171 100644 (file)
 (define-class <gui-skin> (<attribute-exchanging-object>)
   (irr-class #:init-value "IGUISkin"))
 
+(define-method (get-color (skin <gui-skin>) color)
+  (let ((getColor (get-irrlicht-proc "getColor" skin)))
+    (getColor skin color)))
+
 (define-method (set-font! (skin <gui-skin>) font . rest)
   (let-keywords rest #f
         ((which 'default))
     (let ((setFont (get-irrlicht-proc "setFont" skin)))
       (setFont skin font which))))
 
-(export <gui-skin> set-font!)
+(define-method (set-color! (skin <gui-skin>) which new-color)
+  (let ((setColor (get-irrlicht-proc "setColor" skin)))
+    (setColor skin which new-color)))
+
+(export <gui-skin> get-color set-font! set-color!)
 
 
 ;; IGUIFont