]> git.jsancho.org Git - guile-irrlicht.git/commitdiff
set-visible!
authorJavier Sancho <jsf@jsancho.org>
Fri, 15 May 2020 06:07:02 +0000 (08:07 +0200)
committerJavier Sancho <jsf@jsancho.org>
Fri, 15 May 2020 06:07:02 +0000 (08:07 +0200)
irrlicht.scm
irrlicht/gui.scm

index 2807ec84a519ceb3f845fe8695adc22ea5a3de76..103ac607dd480c619211ef97b83d04c197a17c35 100644 (file)
@@ -51,6 +51,7 @@
                set-material-texture!
                set-md2-animation!
                set-position!
+               set-visible!
                set-window-caption!))
 
 ;; Merged methods have to be exported apart
index 818d062bef3cedf6d3192db1c7ed83cab6c04b0d..1471409807bc524261e95e27851b1e50a58ae3a3 100644 (file)
   #:use-module (irrlicht irr))
 
 
+;; ICursorControl
+(define-class <cursor-control> (<reference-counted>)
+  (irr-class #:init-value "ICursorControl"))
+
+(define-method (set-visible! (cursor-control <cursor-control>) visible)
+  (let ((setVisible (get-irrlicht-proc "setVisible" cursor-control)))
+    (setVisible cursor-control visible)))
+
+(export <cursor-control> set-visible!)
+
+
 ;; IGUIElement
 (define-class <gui-element> (<attribute-exchanging-object> <event-receiver>)
   (irr-class #:init-value "IGUIElement"))