From: Javier Sancho Date: Thu, 3 Oct 2019 08:58:56 +0000 (+0200) Subject: More options X-Git-Url: https://git.jsancho.org/?a=commitdiff_plain;h=22d45f8b79d343a60b0f2678ad2c747ca5c579be;p=guile-irrlicht.git More options --- diff --git a/irrlicht.scm b/irrlicht.scm index 8c51780..39c8ca4 100644 --- a/irrlicht.scm +++ b/irrlicht.scm @@ -28,7 +28,11 @@ (define* (create-device #:optional (device-type 'software) - (window-size '(640 480))) + (window-size '(640 480)) + (bits 16) + (fullscreen #f) + (stencilbuffer #f) + (vsync #f)) (let ((driver (match device-type ('null ffi-video:EDT_NULL) ('software ffi-video:EDT_SOFTWARE) @@ -38,4 +42,7 @@ ('opengl ffi-video:EDT_OPENGL) ('count ffi-video:EDT_COUNT))) (wsize (make-c-struct ffi-core:dimension2d window-size))) - (ffi:create-device driver wsize))) + (ffi:create-device driver wsize bits + (if fullscreen 1 0) + (if stencilbuffer 1 0) + (if vsync 1 0)))) diff --git a/irrlicht/bindings.scm b/irrlicht/bindings.scm index d2647ff..f17557f 100644 --- a/irrlicht/bindings.scm +++ b/irrlicht/bindings.scm @@ -28,4 +28,4 @@ (pointer->procedure int (dynamic-func "irr_createDevice" cirr) - (list int '*))) + (list int '* uint32 int int int)))