]> git.jsancho.org Git - guile-irrlicht.git/commitdiff
set-window-caption!
authorJavier Sancho <jsf@jsancho.org>
Fri, 4 Oct 2019 15:05:41 +0000 (17:05 +0200)
committerJavier Sancho <jsf@jsancho.org>
Fri, 4 Oct 2019 15:05:41 +0000 (17:05 +0200)
examples/hello.scm
irrlicht.scm
irrlicht/bindings.scm

index 4f9026e604e73a8428e03250b54d74d553d2419e..c8643b569c303ba1ba5cdc5f99dd6eee6e949501 100644 (file)
@@ -23,3 +23,5 @@
 (define device (create-device 'opengl))
 (define driver (get-video-driver device))
 (define scene-manager (get-scene-manager device))
+
+(set-window-caption! device "Hello World!")
index 7cbb8860f72f19aa870ca18526b9c2fb17b0b4da..6e7ccff6377958b42260471b1c6e64f599eee171 100644 (file)
@@ -26,7 +26,8 @@
   #:use-module ((irrlicht bindings video) #:prefix ffi-video:)
   #:export (create-device
             get-video-driver
-            get-scene-manager))
+            get-scene-manager
+            set-window-caption!))
 
 (define* (create-device #:optional
                         (device-type 'software)
@@ -54,3 +55,6 @@
 
 (define (get-scene-manager device)
   (ffi:get-scene-manager device))
+
+(define (set-window-caption! device text)
+  (ffi:set-window-caption device (string->pointer text)))
index eab8e334b59cb917e9b50c34271271174775bc77..148a785304c6a0ff2b8c07a38b93b5aa1299f002 100644 (file)
@@ -40,3 +40,9 @@
    '*
    (dynamic-func "irr_IrrlichtDevice_getSceneManager" cirr)
    (list '*)))
+
+(define-public set-window-caption
+  (pointer->procedure
+   void
+   (dynamic-func "irr_IrrlichtDevice_setWindowCaption" cirr)
+   (list '* '*)))