(define device (create-device 'opengl))
(define driver (get-video-driver device))
(define scene-manager (get-scene-manager device))
+
+(set-window-caption! device "Hello World!")
#: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)
(define (get-scene-manager device)
(ffi:get-scene-manager device))
+
+(define (set-window-caption! device text)
+ (ffi:set-window-caption device (string->pointer text)))
'*
(dynamic-func "irr_IrrlichtDevice_getSceneManager" cirr)
(list '*)))
+
+(define-public set-window-caption
+ (pointer->procedure
+ void
+ (dynamic-func "irr_IrrlichtDevice_setWindowCaption" cirr)
+ (list '* '*)))