- SCM
- irr_scene_setPosition (SCM wrapped_scene_node,
- SCM position)
- {
- if (scene_node_p (wrapped_scene_node))
- {
- unwrap_scene_node (wrapped_scene_node)->
- setPosition (scm_to_vector3df (position));
- }
- else if (mesh_scene_node_p (wrapped_scene_node))
- {
- unwrap_mesh_scene_node (wrapped_scene_node)->
- setPosition (scm_to_vector3df (position));
- }
- else
- {
- scm_error (scm_arg_type_key, NULL, "Cannot set position to object: ~S",
- scm_list_1 (wrapped_scene_node), scm_list_1 (wrapped_scene_node));
- }
- return SCM_UNSPECIFIED;
+ DEFINE_GSUBR ("IAnimatedMeshSceneNode_setMaterialFlag", 3, 0, 0,
+ ISceneNode_setMaterialFlag<scene::IAnimatedMeshSceneNode*>);
+ DEFINE_GSUBR ("IMeshSceneNode_setMaterialFlag", 3, 0, 0,
+ ISceneNode_setMaterialFlag<scene::IMeshSceneNode*>);
+ DEFINE_GSUBR ("ISceneNode_setMaterialFlag", 3, 0, 0,
+ ISceneNode_setMaterialFlag<scene::ISceneNode*>);
+
+ DEFINE_GSUBR ("IAnimatedMeshSceneNode_setMaterialTexture", 3, 0, 0,
+ ISceneNode_setMaterialTexture<scene::IAnimatedMeshSceneNode*>);
+ DEFINE_GSUBR ("IMeshSceneNode_setMaterialTexture", 3, 0, 0,
+ ISceneNode_setMaterialTexture<scene::IMeshSceneNode*>);
+ DEFINE_GSUBR ("ISceneNode_setMaterialTexture", 3, 0, 0,
+ ISceneNode_setMaterialTexture<scene::ISceneNode*>);
+
+ DEFINE_GSUBR ("IMeshSceneNode_setPosition", 2, 0, 0,
+ ISceneNode_setPosition<scene::IMeshSceneNode*>);
+ DEFINE_GSUBR ("ISceneNode_setPosition", 2, 0, 0,
+ ISceneNode_setPosition<scene::ISceneNode*>);
+
+ DEFINE_GSUBR ("IAnimatedMeshSceneNode_setRotation", 2, 0, 0,
+ ISceneNode_setRotation<scene::IAnimatedMeshSceneNode*>);
+ DEFINE_GSUBR ("ICameraSceneNode_setRotation", 2, 0, 0,
+ ISceneNode_setRotation<scene::ICameraSceneNode*>);
+ DEFINE_GSUBR ("ISceneNode_setRotation", 2, 0, 0,
+ ISceneNode_setRotation<scene::ISceneNode*>);
+
+ DEFINE_GSUBR ("IAnimatedMeshSceneNode_setScale", 2, 0, 0,
+ ISceneNode_setScale<scene::IAnimatedMeshSceneNode*>);
+ DEFINE_GSUBR ("ISceneNode_setScale", 2, 0, 0,
+ ISceneNode_setScale<scene::ISceneNode*>);