X-Git-Url: https://git.jsancho.org/?a=blobdiff_plain;f=src%2Fanimated-mesh.cpp;h=896cfe95e0fcb6ce8d696276eb0e12450c0ec429;hb=3bb58c2b45af12c0f9c9eac648e67ac6fa90e104;hp=b79f196e668b2edca7eb347191fb234545f0fede;hpb=b298e30f299d7c0b91c00f2455b4bc1efabe62e3;p=guile-irrlicht.git diff --git a/src/animated-mesh.cpp b/src/animated-mesh.cpp index b79f196..896cfe9 100644 --- a/src/animated-mesh.cpp +++ b/src/animated-mesh.cpp @@ -21,31 +21,23 @@ #include #include - #include "animated-mesh.h" #include "gsubr.h" - +#include "wrapped.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))-> + ((scene::IAnimatedMesh*)scm_to_irr_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); }