#:use-module (irrlicht device)
#:use-module (irrlicht gui)
#:use-module (irrlicht scene)
+ #:use-module (irrlicht video)
#:re-export (add-animated-mesh-scene-node!
add-static-text!
create-device
get-gui-environment
get-mesh
get-scene-manager
+ get-texture
get-video-driver
is-empty?
set-material-flag!
+ set-material-texture!
set-md2-animation!
set-window-caption!))
#:use-module (irrlicht base)
#:use-module (irrlicht foreign)
#:use-module (irrlicht io)
- #:use-module (irrlicht irr))
+ #:use-module (irrlicht irr)
+ #:use-module (irrlicht video))
;; IMesh
flag
new-value))
-(export <scene-node> set-material-flag!)
+(define-method (set-material-texture! (node <scene-node>) texture-layer (texture <texture>))
+ ((get-irrlicht-proc "setMaterialTexture" node)
+ (irr-pointer node)
+ texture-layer
+ (irr-pointer texture)))
+
+(export <scene-node> set-material-flag! set-material-texture!)
;; ISceneNode
#:use-module (irrlicht foreign))
+;; ITexture
+(define-class <texture> (<irrlicht-base>)
+ (irr-class #:init-value "ITexture" #:getter irr-class))
+
+(export <texture>)
+
+
;; IVideoDriver
-(define-class <video-driver> (<irrlicht-base>))
+(define-class <video-driver> (<irrlicht-base>)
+ (irr-class #:init-value "IVideoDriver" #:getter irr-class))
+
+(define-method (get-texture (video-driver <video-driver>) filename)
+ (make <texture>
+ #:irr-pointer
+ ((get-irrlicht-proc "getTexture" video-driver)
+ (irr-pointer video-driver)
+ filename)))
-(export <video-driver>)
+(export <video-driver> get-texture)