]> git.jsancho.org Git - guile-irrlicht.git/blobdiff - src/animated-mesh-scene-node.cpp
clean code
[guile-irrlicht.git] / src / animated-mesh-scene-node.cpp
index 01286e9dfb921c164179d4499c336210f44df8da..3496b3a7b32ae53c4df3c35926d0321e787acd40 100644 (file)
 #include "animated-mesh-scene-node.h"
 #include "gsubr.h"
 
-
 using namespace irr;
 
-
 SCM
-irr_scene_IAnimatedMeshSceneNode_setFrameLoop (SCM animated_mesh_scene_node,
-                                               SCM begin,
-                                               SCM end)
+IAnimatedMeshSceneNode_setFrameLoop (SCM animated_mesh_scene_node,
+                                     SCM begin,
+                                     SCM end)
 {
   return scm_from_bool
     (((scene::IAnimatedMeshSceneNode*)scm_to_pointer (animated_mesh_scene_node))->
@@ -40,26 +38,20 @@ irr_scene_IAnimatedMeshSceneNode_setFrameLoop (SCM animated_mesh_scene_node,
                    scm_to_int32 (end)));
 }
 
-
 SCM
-irr_scene_IAnimatedMeshSceneNode_setMD2Animation (SCM animated_mesh_scene_node,
-                                                  SCM anim)
+IAnimatedMeshSceneNode_setMD2Animation (SCM animated_mesh_scene_node,
+                                        SCM anim)
 {
   return scm_from_bool
     (((scene::IAnimatedMeshSceneNode*)scm_to_pointer (animated_mesh_scene_node))->
      setMD2Animation (scm_to_md2_animation_type (anim)));
 }
 
-
-extern "C" {
-
-  void
-  init_animated_mesh_scene_node (void)
-  {
-    DEFINE_GSUBR ("irr_scene_IAnimatedMeshSceneNode_setFrameLoop", 3, 0, 0,
-                  irr_scene_IAnimatedMeshSceneNode_setFrameLoop);
-    DEFINE_GSUBR ("irr_scene_IAnimatedMeshSceneNode_setMD2Animation", 2, 0, 0,
-                  irr_scene_IAnimatedMeshSceneNode_setMD2Animation);
-  }
-
+void
+init_animated_mesh_scene_node (void)
+{
+  DEFINE_GSUBR ("IAnimatedMeshSceneNode_setFrameLoop", 3, 0, 0,
+                IAnimatedMeshSceneNode_setFrameLoop);
+  DEFINE_GSUBR ("IAnimatedMeshSceneNode_setMD2Animation", 2, 0, 0,
+                IAnimatedMeshSceneNode_setMD2Animation);
 }