scm_c_define_gsubr ("add-octree-scene-node!", 2, 0, 1,
(scm_t_subr)irr_scene_addOctreeSceneNode);
scm_c_define_gsubr ("get-mesh", 2, 0, 0, (scm_t_subr)irr_scene_getMesh);
+ scm_c_define_gsubr ("get-root-scene-node", 1, 0, 0, (scm_t_subr)irr_scene_getRootSceneNode);
scm_c_define_gsubr ("get-scene-manager", 1, 0, 0, (scm_t_subr)irr_getSceneManager);
scm_c_export ("add-animated-mesh-scene-node!", "add-camera-scene-node!",
"add-camera-scene-node-fps!", "add-custom-scene-node!",
- "add-octree-scene-node!", "get-mesh", "get-scene-manager", NULL);
+ "add-octree-scene-node!", "get-mesh", "get-root-scene-node",
+ "get-scene-manager", NULL);
}
DEFINE_WRAPPED_TYPE (irr::scene::ISceneManager*, "scene-manager",
return wrap_animated_mesh (mesh);
}
+ SCM
+ irr_scene_getRootSceneNode (SCM wrapped_scene_manager)
+ {
+ irr::scene::ISceneManager* smgr = unwrap_scene_manager (wrapped_scene_manager);
+ return wrap_scene_node (smgr->getRootSceneNode ());
+ }
+
SCM
irr_getSceneManager (SCM wrapped_obj)
{