(define-class <scene-manager> (<reference-counted>)
(irr-class #:init-value "ISceneManager" #:getter irr-class))
-(define-method (add-animated-mesh-scene-node! (scene-manager <scene-manager>) mesh . rest)
+(define-method (add-animated-mesh-scene-node! (scene-manager <scene-manager>)
+ (mesh <animated-mesh>)
+ . rest)
(let-keywords rest #f
((parent (make <scene-node>))
(id -1)
scale
also-add-if-mesh-pointer-zero))))
+(define-method (add-camera-scene-node! (scene-manager <scene-manager>) . rest)
+ (let-keywords rest #f
+ ((parent (make <scene-node>))
+ (position '(0 0 0))
+ (lookat '(0 0 100))
+ (id -1)
+ (make-active #t))
+ (make <camera-scene-node>
+ #:irr-pointer
+ ((get-irrlicht-proc "addCameraSceneNode" scene-manager parent)
+ (irr-pointer scene-manager)
+ (irr-pointer parent)
+ position
+ lookat
+ id
+ make-active))))
+
(define-method (get-mesh (scene-manager <scene-manager>) filename)
(make <animated-mesh>
#:irr-pointer
(irr-pointer scene-manager)
filename)))
-(export <scene-manager> add-animated-mesh-scene-node! get-mesh)
+(export <scene-manager> add-animated-mesh-scene-node! add-camera-scene-node! get-mesh)
;; ISceneNode
(export <scene-node> set-material-flag! set-material-texture!)
-;; ISceneNode
+;; IAnimatedMeshSceneNode
(define-class <animated-mesh-scene-node> (<scene-node>)
(irr-class #:init-value "IAnimatedMeshSceneNode" #:getter irr-class))
anim))
(export <animated-mesh-scene-node> set-md2-animation!)
+
+
+;; ICameraSceneNode
+(define-class <camera-scene-node> (<scene-node>)
+ (irr-class #:init-value "ICameraSceneNode" #:getter irr-class))
+
+(export <camera-scene-node>)