X-Git-Url: https://git.jsancho.org/?p=guile-irrlicht.git;a=blobdiff_plain;f=src%2Fscene-manager.cpp;h=f96938389ceeb51816574eb28f56924882cf693f;hp=51e561ad4c5159861294c5d03e8dc63dde7689cb;hb=98052b04792129db97286fdd77ef3b0de8912286;hpb=661f003f90a2ab35026cf17215f28dcb73f54084 diff --git a/src/scene-manager.cpp b/src/scene-manager.cpp index 51e561a..f969383 100644 --- a/src/scene-manager.cpp +++ b/src/scene-manager.cpp @@ -31,14 +31,14 @@ using namespace irr; template SCM -scene_ISceneManager_addAnimatedMeshSceneNode (SCM scene_manager, - SCM mesh, - SCM parent, - SCM id, - SCM position, - SCM rotation, - SCM scale, - SCM also_add_if_mesh_pointer_zero) +ISceneManager_addAnimatedMeshSceneNode (SCM scene_manager, + SCM mesh, + SCM parent, + SCM id, + SCM position, + SCM rotation, + SCM scale, + SCM also_add_if_mesh_pointer_zero) { scene::ISceneManager* smgr = (scene::ISceneManager*) scm_to_pointer (scene_manager); scene::IAnimatedMeshSceneNode* node = @@ -55,12 +55,12 @@ scene_ISceneManager_addAnimatedMeshSceneNode (SCM scene_manager, template SCM -scene_ISceneManager_addCameraSceneNode (SCM scene_manager, - SCM parent, - SCM position, - SCM lookat, - SCM id, - SCM make_active) +ISceneManager_addCameraSceneNode (SCM scene_manager, + SCM parent, + SCM position, + SCM lookat, + SCM id, + SCM make_active) { scene::ISceneManager* smgr = (scene::ISceneManager*) scm_to_pointer (scene_manager); scene::ICameraSceneNode* camera = @@ -75,8 +75,8 @@ scene_ISceneManager_addCameraSceneNode (SCM scene_manager, template SCM -scene_ISceneManager_addCameraSceneNodeFPS (SCM scene_manager, - SCM rest) +ISceneManager_addCameraSceneNodeFPS (SCM scene_manager, + SCM rest) { SCM parent; SCM rotate_speed; @@ -121,13 +121,13 @@ scene_ISceneManager_addCameraSceneNodeFPS (SCM scene_manager, template SCM -scene_ISceneManager_addCubeSceneNode (SCM scene_manager, - SCM size, - SCM parent, - SCM id, - SCM position, - SCM rotation, - SCM scale) +ISceneManager_addCubeSceneNode (SCM scene_manager, + SCM size, + SCM parent, + SCM id, + SCM position, + SCM rotation, + SCM scale) { scene::ISceneManager* smgr = (scene::ISceneManager*) scm_to_pointer (scene_manager); scene::IMeshSceneNode* node = @@ -143,16 +143,16 @@ scene_ISceneManager_addCubeSceneNode (SCM scene_manager, template SCM -scene_ISceneManager_addCustomSceneNode (SCM scene_manager, - SCM proc_render, - SCM proc_get_bounding_box, - SCM proc_get_material_count, - SCM proc_get_material, - SCM parent, - SCM id, - SCM position, - SCM rotation, - SCM scale) +ISceneManager_addCustomSceneNode (SCM scene_manager, + SCM proc_render, + SCM proc_get_bounding_box, + SCM proc_get_material_count, + SCM proc_get_material, + SCM parent, + SCM id, + SCM position, + SCM rotation, + SCM scale) { class CustomSceneNode : public scene::ISceneNode { @@ -229,12 +229,12 @@ scene_ISceneManager_addCustomSceneNode (SCM scene_manager, template SCM -scene_ISceneManager_addOctreeSceneNode (SCM scene_manager, - SCM mesh, - SCM parent, - SCM id, - SCM minimal_polys_per_node, - SCM also_add_if_mesh_pointer_zero) +ISceneManager_addOctreeSceneNode (SCM scene_manager, + SCM mesh, + SCM parent, + SCM id, + SCM minimal_polys_per_node, + SCM also_add_if_mesh_pointer_zero) { scene::ISceneManager* smgr = (scene::ISceneManager*) scm_to_pointer (scene_manager); scene::IMeshSceneNode* node = @@ -249,14 +249,14 @@ scene_ISceneManager_addOctreeSceneNode (SCM scene_manager, template SCM -scene_ISceneManager_addSphereSceneNode (SCM scene_manager, - SCM radius, - SCM poly_count, - SCM parent, - SCM id, - SCM position, - SCM rotation, - SCM scale) +ISceneManager_addSphereSceneNode (SCM scene_manager, + SCM radius, + SCM poly_count, + SCM parent, + SCM id, + SCM position, + SCM rotation, + SCM scale) { scene::ISceneManager* smgr = (scene::ISceneManager*) scm_to_pointer (scene_manager); scene::IMeshSceneNode* node = @@ -272,13 +272,13 @@ scene_ISceneManager_addSphereSceneNode (SCM scene_manager, SCM -scene_ISceneManager_createFlyCircleAnimator (SCM scene_manager, - SCM center, - SCM radius, - SCM speed, - SCM direction, - SCM start_position, - SCM radius_ellipsoid) +ISceneManager_createFlyCircleAnimator (SCM scene_manager, + SCM center, + SCM radius, + SCM speed, + SCM direction, + SCM start_position, + SCM radius_ellipsoid) { scene::ISceneManager* smgr = (scene::ISceneManager*) scm_to_pointer (scene_manager); scene::ISceneNodeAnimator* anim = @@ -293,12 +293,12 @@ scene_ISceneManager_createFlyCircleAnimator (SCM scene_manager, SCM -scene_ISceneManager_createFlyStraightAnimator (SCM scene_manager, - SCM start_point, - SCM end_point, - SCM time_for_way, - SCM loop, - SCM pingpong) +ISceneManager_createFlyStraightAnimator (SCM scene_manager, + SCM start_point, + SCM end_point, + SCM time_for_way, + SCM loop, + SCM pingpong) { scene::ISceneManager* smgr = (scene::ISceneManager*) scm_to_pointer (scene_manager); scene::ISceneNodeAnimator* anim = @@ -312,8 +312,8 @@ scene_ISceneManager_createFlyStraightAnimator (SCM scene_manager, SCM -scene_ISceneManager_createRotationAnimator (SCM scene_manager, - SCM rotation_speed) +ISceneManager_createRotationAnimator (SCM scene_manager, + SCM rotation_speed) { scene::ISceneManager* smgr = (scene::ISceneManager*) scm_to_pointer (scene_manager); scene::ISceneNodeAnimator* anim = @@ -323,7 +323,7 @@ scene_ISceneManager_createRotationAnimator (SCM scene_manager, SCM -scene_ISceneManager_drawAll (SCM scene_manager) +ISceneManager_drawAll (SCM scene_manager) { ((scene::ISceneManager*) scm_to_pointer (scene_manager))->drawAll (); return SCM_UNSPECIFIED; @@ -331,8 +331,8 @@ scene_ISceneManager_drawAll (SCM scene_manager) SCM -scene_ISceneManager_getMesh (SCM scene_manager, - SCM filename) +ISceneManager_getMesh (SCM scene_manager, + SCM filename) { scene::ISceneManager* smgr = (scene::ISceneManager*) scm_to_pointer (scene_manager); scene::IAnimatedMesh* mesh = smgr->getMesh(scm_to_utf8_stringn (filename, NULL)); @@ -341,7 +341,7 @@ scene_ISceneManager_getMesh (SCM scene_manager, SCM -scene_ISceneManager_getRootSceneNode (SCM scene_manager) +ISceneManager_getRootSceneNode (SCM scene_manager) { scene::ISceneManager* smgr = (scene::ISceneManager*) scm_to_pointer (scene_manager); return scm_from_pointer ((void*) smgr->getRootSceneNode (), NULL); @@ -353,32 +353,31 @@ extern "C" { void init_scene_manager (void) { - DEFINE_GSUBR ("scene_ISceneManager_addAnimatedMeshSceneNode_ISceneNode", 8, 0, 0, - scene_ISceneManager_addAnimatedMeshSceneNode); - DEFINE_GSUBR ("scene_ISceneManager_addCameraSceneNode_ISceneNode", 6, 0, 0, - scene_ISceneManager_addCameraSceneNode); - DEFINE_GSUBR ("scene_ISceneManager_addCameraSceneNodeFPS_ISceneNode", 1, 0, 1, - scene_ISceneManager_addCameraSceneNodeFPS); - DEFINE_GSUBR ("scene_ISceneManager_addCubeSceneNode_ISceneNode", 7, 0, 0, - scene_ISceneManager_addCubeSceneNode); - DEFINE_GSUBR ("scene_ISceneManager_addCustomSceneNode_ISceneNode", 10, 0, 0, - scene_ISceneManager_addCustomSceneNode); - DEFINE_GSUBR ("scene_ISceneManager_addOctreeSceneNode_ISceneNode_IAnimatedMesh", 6, 0, 0, - (scene_ISceneManager_addOctreeSceneNode)); - DEFINE_GSUBR ("scene_ISceneManager_addOctreeSceneNode_ISceneNode_IMesh", 6, 0, 0, - (scene_ISceneManager_addOctreeSceneNode)); - DEFINE_GSUBR ("scene_ISceneManager_addSphereSceneNode_ISceneNode", 8, 0, 0, - scene_ISceneManager_addSphereSceneNode); - DEFINE_GSUBR ("scene_ISceneManager_createFlyCircleAnimator", 7, 0, 0, - scene_ISceneManager_createFlyCircleAnimator); - DEFINE_GSUBR ("scene_ISceneManager_createFlyStraightAnimator", 6, 0, 0, - scene_ISceneManager_createFlyStraightAnimator); - DEFINE_GSUBR ("scene_ISceneManager_createRotationAnimator", 2, 0, 0, - scene_ISceneManager_createRotationAnimator); - DEFINE_GSUBR ("scene_ISceneManager_drawAll", 1, 0, 0, scene_ISceneManager_drawAll); - DEFINE_GSUBR ("scene_ISceneManager_getMesh", 2, 0, 0, scene_ISceneManager_getMesh); - DEFINE_GSUBR ("scene_ISceneManager_getRootSceneNode", 1, 0, 0, - scene_ISceneManager_getRootSceneNode); + DEFINE_GSUBR ("ISceneManager_addAnimatedMeshSceneNode_ISceneNode", 8, 0, 0, + ISceneManager_addAnimatedMeshSceneNode); + DEFINE_GSUBR ("ISceneManager_addCameraSceneNode_ISceneNode", 6, 0, 0, + ISceneManager_addCameraSceneNode); + DEFINE_GSUBR ("ISceneManager_addCameraSceneNodeFPS_ISceneNode", 1, 0, 1, + ISceneManager_addCameraSceneNodeFPS); + DEFINE_GSUBR ("ISceneManager_addCubeSceneNode_ISceneNode", 7, 0, 0, + ISceneManager_addCubeSceneNode); + DEFINE_GSUBR ("ISceneManager_addCustomSceneNode_ISceneNode", 10, 0, 0, + ISceneManager_addCustomSceneNode); + DEFINE_GSUBR ("ISceneManager_addOctreeSceneNode_ISceneNode_IAnimatedMesh", 6, 0, 0, + (ISceneManager_addOctreeSceneNode)); + DEFINE_GSUBR ("ISceneManager_addOctreeSceneNode_ISceneNode_IMesh", 6, 0, 0, + (ISceneManager_addOctreeSceneNode)); + DEFINE_GSUBR ("ISceneManager_addSphereSceneNode_ISceneNode", 8, 0, 0, + ISceneManager_addSphereSceneNode); + DEFINE_GSUBR ("ISceneManager_createFlyCircleAnimator", 7, 0, 0, + ISceneManager_createFlyCircleAnimator); + DEFINE_GSUBR ("ISceneManager_createFlyStraightAnimator", 6, 0, 0, + ISceneManager_createFlyStraightAnimator); + DEFINE_GSUBR ("ISceneManager_createRotationAnimator", 2, 0, 0, + ISceneManager_createRotationAnimator); + DEFINE_GSUBR ("ISceneManager_drawAll", 1, 0, 0, ISceneManager_drawAll); + DEFINE_GSUBR ("ISceneManager_getMesh", 2, 0, 0, ISceneManager_getMesh); + DEFINE_GSUBR ("ISceneManager_getRootSceneNode", 1, 0, 0, ISceneManager_getRootSceneNode); } }