(addOctreeSceneNode scene-manager mesh parent id minimal-polys-per-node
also-add-if-mesh-pointer-zero))))
+(define-method (add-sphere-scene-node! (scene-manager <scene-manager>) . rest)
+ (let-keywords rest #f
+ ((radius 5)
+ (poly-count 16)
+ (parent (make <scene-node>))
+ (id -1)
+ (position '(0 0 0))
+ (rotation '(0 0 0))
+ (scale '(1 1 1)))
+ (let ((addSphereSceneNode (get-irrlicht-proc "addSphereSceneNode" scene-manager parent)))
+ (addSphereSceneNode scene-manager radius poly-count parent id position rotation scale))))
+
(define-method (create-rotation-animator (scene-manager <scene-manager>) rotation-speed)
(let ((createRotationAnimator (get-irrlicht-proc "createRotationAnimator" scene-manager)))
(createRotationAnimator scene-manager rotation-speed)))
(export <scene-manager> add-animated-mesh-scene-node! add-camera-scene-node!
add-camera-scene-node-fps! add-custom-scene-node! add-octree-scene-node!
- create-rotation-animator draw-all get-root-scene-node get-mesh)
+ add-sphere-scene-node! create-rotation-animator draw-all get-root-scene-node get-mesh)
;; ISceneNode