#:use-module (ice-9 match)
#:use-module (system foreign)
#:use-module ((irrlicht bindings) #:prefix ffi:)
+ #:use-module ((irrlicht bindings core) #:prefix ffi-core:)
#:use-module ((irrlicht bindings video) #:prefix ffi-video:)
- #:use-module (irrlicht dimension2d)
#:use-module (irrlicht util)
#:export (create-device
get-cursor-control
(define* (create-device #:key
(device-type 'software)
- (window-size (make-dimension2d 640 480))
+ (window-size '(640 480))
(bits 16)
(fullscreen #f)
(stencilbuffer #f)
('opengl ffi-video:EDT_OPENGL)
('count ffi-video:EDT_COUNT))))
(let ((device (ffi:create-device driver
- (foreign-record->pointer window-size)
+ (ffi-core:dimension2d->pointer window-size)
bits
(bool->integer fullscreen)
(bool->integer stencilbuffer)