#:use-module ((irrlicht bindings) #:prefix ffi:)
#:use-module ((irrlicht bindings core) #:prefix ffi-core:)
#:use-module ((irrlicht bindings video) #:prefix ffi-video:)
- #:export (create-device))
+ #:export (create-device
+ get-video-driver))
(define* (create-device #:optional
(device-type 'software)
(if fullscreen 1 0)
(if stencilbuffer 1 0)
(if vsync 1 0))))
+
+(define (get-video-driver device)
+ (ffi:get-video-driver device))
(define-module (irrlicht bindings)
- #:use-module (system foreign)
- #:export (create-device))
+ #:use-module (system foreign))
(define cirr (dynamic-link "libCIrrlicht"))
-(define create-device
+(define-public create-device
(pointer->procedure
'*
(dynamic-func "irr_createDevice" cirr)
(list int '* uint32 int int int)))
+
+(define-public get-video-driver
+ (pointer->procedure
+ '*
+ (dynamic-func "irr_IrrlichtDevice_getVideoDriver" cirr)
+ (list '*)))