From 22d45f8b79d343a60b0f2678ad2c747ca5c579be Mon Sep 17 00:00:00 2001 From: Javier Sancho Date: Thu, 3 Oct 2019 10:58:56 +0200 Subject: [PATCH] More options --- irrlicht.scm | 11 +++++++++-- irrlicht/bindings.scm | 2 +- 2 files changed, 10 insertions(+), 3 deletions(-) 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))) -- 2.39.2