(use-modules (irrlicht))
;; start up the engine
-(define device (create-device 'software '(640 480) 16 #f #f #f))
+(define device
+ (create-device
+ #:device-type 'software
+ #:window-size '(640 480)))
(when (not device)
(exit #f))
(define gui-env (get-gui-environment device))
;; static text
-(add-static-text! gui-env
- "Hello World! This is the Irrlicht Software renderer!"
- '(10 10 260 22)
- #t)
+(add-static-text!
+ gui-env
+ "Hello World! This is the Irrlicht Software renderer!"
+ '(10 10 260 22)
+ #:border #t)
;; load a Quake2 model
(define mesh (get-mesh scene-manager "examples/media/sydney.md2"))
;; draw everything
(while (device-run? device)
- (begin-scene driver #t #t '(255 100 101 140))
+ (begin-scene driver #:color '(255 100 101 140))
(scene-draw-all scene-manager)
(gui-draw-all gui-env)
(end-scene driver))
set-md2-animation!))
;; Device functions
-(define* (create-device #:optional
+(define* (create-device #:key
(device-type 'software)
(window-size '(640 480))
(bits 16)
;; Driver functions
(define* (begin-scene driver
- #:optional
+ #:key
(back-buffer #t)
(z-buffer #t)
(color '(255 0 0 0))
;; GUI functions
(define* (add-static-text! gui-env text rectangle
- #:optional
+ #:key
(border #f)
(word-wrap #t)
(parent %null-pointer)