From 030dfd4d155aa164230d37ac314ac9707a30f4e4 Mon Sep 17 00:00:00 2001 From: Javier Sancho Date: Sun, 17 May 2020 08:38:55 +0200 Subject: [PATCH] set-transform! --- irrlicht.scm | 1 + irrlicht/video.scm | 7 ++++++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/irrlicht.scm b/irrlicht.scm index 88da30e..8fa8ccd 100644 --- a/irrlicht.scm +++ b/irrlicht.scm @@ -66,6 +66,7 @@ set-material-texture! set-md2-animation! set-position! + set-transform! set-visible! set-window-caption! yield-device)) diff --git a/irrlicht/video.scm b/irrlicht/video.scm index 23f9db4..11c8db9 100644 --- a/irrlicht/video.scm +++ b/irrlicht/video.scm @@ -127,7 +127,12 @@ (let ((setMaterial (get-irrlicht-proc "setMaterial" video-driver))) (setMaterial video-driver material))) -(export begin-scene end-scene get-fps get-name get-texture set-material!) +(define-method (set-transform! (video-driver ) state mat) + (let ((setTransform (get-irrlicht-proc "setTransform" video-driver))) + (setTransform video-driver state mat))) + +(export begin-scene end-scene get-fps get-name get-texture set-material! + set-transform!) ;; S3DVertex -- 2.39.5