]> git.jsancho.org Git - guile-irrlicht.git/commitdiff
set-transform!
authorJavier Sancho <jsf@jsancho.org>
Sun, 17 May 2020 06:38:55 +0000 (08:38 +0200)
committerJavier Sancho <jsf@jsancho.org>
Sun, 17 May 2020 06:38:55 +0000 (08:38 +0200)
irrlicht.scm
irrlicht/video.scm

index 88da30e342a9a731ad62d13a5a822d36539b543e..8fa8ccd8d7934dd591dff2c9b927f0ded891ba0c 100644 (file)
@@ -66,6 +66,7 @@
                set-material-texture!
                set-md2-animation!
                set-position!
+               set-transform!
                set-visible!
                set-window-caption!
                yield-device))
index 23f9db497ca6c35caa1d89ff4ac5cb7cb873505c..11c8db919da57f4f214ff3c477dfcedff6c42274 100644 (file)
   (let ((setMaterial (get-irrlicht-proc "setMaterial" video-driver)))
     (setMaterial video-driver material)))
 
-(export <video-driver> begin-scene end-scene get-fps get-name get-texture set-material!)
+(define-method (set-transform! (video-driver <video-driver>) state mat)
+  (let ((setTransform (get-irrlicht-proc "setTransform" video-driver)))
+    (setTransform video-driver state mat)))
+
+(export <video-driver> begin-scene end-scene get-fps get-name get-texture set-material!
+        set-transform!)
 
 
 ;; S3DVertex