(define-module (irrlicht video)
#:use-module (oop goops)
+ #:use-module (ice-9 optargs)
#:use-module (irrlicht base)
#:use-module (irrlicht foreign))
(define-class <video-driver> (<irrlicht-base>)
(irr-class #:init-value "IVideoDriver" #:getter irr-class))
+(define-method (begin-scene (video-driver <video-driver>) . rest)
+ (let-keywords rest #f
+ ((back-buffer #t)
+ (z-buffer #t)
+ (color '(255 0 0 0))
+ video-data
+ source-rect)
+ ((get-irrlicht-proc "beginScene" video-driver)
+ (irr-pointer video-driver)
+ back-buffer
+ z-buffer
+ color
+ video-data
+ source-rect)))
+
(define-method (get-texture (video-driver <video-driver>) filename)
(make <texture>
#:irr-pointer
(irr-pointer video-driver)
filename)))
-(export <video-driver> get-texture)
+(export <video-driver> begin-scene get-texture)