#: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 util)
#:export (create-device
('direct3d8 ffi-video:EDT_DIRECT3D8)
('direct3d9 ffi-video:EDT_DIRECT3D9)
('opengl ffi-video:EDT_OPENGL)
- ('count ffi-video:EDT_COUNT)))
- (wsize (foreign-record-pointer window-size)))
- (let ((device (ffi:create-device driver wsize bits
+ ('count ffi-video:EDT_COUNT))))
+ (let ((device (ffi:create-device driver
+ (ffi-core:dimension2d->pointer window-size)
+ bits
(bool->integer fullscreen)
(bool->integer stencilbuffer)
(bool->integer vsync))))