(define-foreign get-video-driver-name
'* "irr_video_getName" (list '*))
+(define-foreign set-material
+ void "irr_video_setMaterial" (list '* '*))
+
;; s3dvertex struct
(define-wrapped-pointer-type s3dvertex-type
s3dvertex?
(ffi-core:aabbox3df->pointer (get-bounding-box))))
(c-get-material
(lambda (i)
- (ffi-core:material->pointer (get-material i)))))
+ (ffi-video:smaterial->pointer (get-material i)))))
(ffi-scene:add-custom-scene-node
scene-manager
parent
get-fps
get-texture
get-video-driver-name
+ set-material!
make-s3dvertex
vertex-position
make-material))
(pointer->string
(ffi-video:get-video-driver-name driver)))
+(define (set-material! driver material)
+ (ffi-video:set-material
+ driver
+ (ffi-video:smaterial->pointer material)))
+
;; s3d vertices
(define (make-s3dvertex position normal color t-coords)
(ffi-video:pointer->s3dvertex