+ SCM
+ irr_scene_addCubeSceneNode (SCM wrapped_scene_manager,
+ SCM rest)
+ {
+ SCM size = scm_from_double (10);
+ SCM parent = scm_from_bool (0);
+ SCM id = scm_from_int32 (-1);
+ SCM position = scm_list_3 (scm_from_double (0),
+ scm_from_double (0),
+ scm_from_double (0));
+ SCM rotation = scm_list_3 (scm_from_double (0),
+ scm_from_double (0),
+ scm_from_double (0));
+ SCM scale = scm_list_3 (scm_from_double (1),
+ scm_from_double (1),
+ scm_from_double (1));
+
+ scm_c_bind_keyword_arguments ("add-cube-scene-node!", rest, (scm_t_keyword_arguments_flags)0,
+ scm_from_utf8_keyword ("size"), &size,
+ scm_from_utf8_keyword ("parent"), &parent,
+ scm_from_utf8_keyword ("id"), &id,
+ scm_from_utf8_keyword ("position"), &position,
+ scm_from_utf8_keyword ("rotation"), &rotation,
+ scm_from_utf8_keyword ("scale"), &scale,
+ SCM_UNDEFINED);
+
+ irr::scene::ISceneManager* smgr = unwrap_scene_manager (wrapped_scene_manager);
+ irr::scene::IMeshSceneNode* node =
+ smgr->addCubeSceneNode (scm_to_double (size),
+ scm_is_false (parent) ? 0 : unwrap_scene_node (parent),
+ scm_to_int32 (id),
+ scm_to_vector3df (position),
+ scm_to_vector3df (rotation),
+ scm_to_vector3df (scale));
+ return wrap_mesh_scene_node (node);
+ }
+