#:export (create-device
get-video-driver
get-scene-manager
- set-window-caption!))
+ set-window-caption!
+ run?
+ drop!))
(define* (create-device #:optional
(device-type 'software)
(define (set-window-caption! device text)
(ffi:set-window-caption device (string->pointer text)))
+
+(define (run? device)
+ (if (> (ffi:run device) 0) #t #f))
+
+(define (drop! device)
+ (if (> (ffi:drop device) 0) #t #f))
void
(dynamic-func "irr_IrrlichtDevice_setWindowCaption" cirr)
(list '* '*)))
+
+(define-public run
+ (pointer->procedure
+ int
+ (dynamic-func "irr_IrrlichtDevice_run" cirr)
+ (list '*)))
+
+(define-public drop
+ (pointer->procedure
+ int
+ (dynamic-func "irr_IrrlichtDevice_drop" cirr)
+ (list '*)))