X-Git-Url: https://git.jsancho.org/?a=blobdiff_plain;f=src%2Fanimated-mesh.cpp;h=cb88225c9f659c564df5bbb5ed7ac72e2c8aea2c;hb=41a6ad96e81a8d8153c54877c4c12f61100677a9;hp=dd1a2c152428a50763238d01754e18d9e31e1b3c;hpb=6537f348407a540c027d92d0b766a8684f0fdf95;p=guile-irrlicht.git diff --git a/src/animated-mesh.cpp b/src/animated-mesh.cpp index dd1a2c1..cb88225 100644 --- a/src/animated-mesh.cpp +++ b/src/animated-mesh.cpp @@ -24,27 +24,19 @@ #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); }