]> git.jsancho.org Git - guile-irrlicht.git/blobdiff - src/animated-mesh.cpp
clean code
[guile-irrlicht.git] / src / animated-mesh.cpp
index b79f196e668b2edca7eb347191fb234545f0fede..cb88225c9f659c564df5bbb5ed7ac72e2c8aea2c 100644 (file)
 
 #include <irrlicht/irrlicht.h>
 #include <libguile.h>
-
 #include "animated-mesh.h"
 #include "gsubr.h"
 
-
 using namespace irr;
 
-
 SCM
-irr_scene_IAnimatedMesh_setAnimationSpeed (SCM animated_mesh,
-                                           SCM frames_per_second)
+IAnimatedMesh_setAnimationSpeed (SCM animated_mesh,
+                                 SCM frames_per_second)
 {
   ((scene::IAnimatedMesh*)scm_to_pointer (animated_mesh))->
     setAnimationSpeed (scm_to_double (frames_per_second));
   return SCM_UNSPECIFIED;
 }
 
-
-extern "C" {
-
-  void
-  init_animated_mesh (void)
-  {
-    DEFINE_GSUBR ("irr_scene_IAnimatedMesh_setAnimationSpeed", 2, 0, 0,
-                  irr_scene_IAnimatedMesh_setAnimationSpeed);
-  }
-
+void
+init_animated_mesh (void)
+{
+  DEFINE_GSUBR ("IAnimatedMesh_setAnimationSpeed", 2, 0, 0, IAnimatedMesh_setAnimationSpeed);
 }