X-Git-Url: https://git.jsancho.org/?a=blobdiff_plain;f=src%2Fanimated-mesh.cpp;h=896cfe95e0fcb6ce8d696276eb0e12450c0ec429;hb=a56a205c111552251f341cacec237f42c54bd5d0;hp=c7013b20363c9353902f12d81ca6f2b9b9780f2f;hpb=d78951bd91783c61b312451198beb31f70b0f8b2;p=guile-irrlicht.git diff --git a/src/animated-mesh.cpp b/src/animated-mesh.cpp index c7013b2..896cfe9 100644 --- a/src/animated-mesh.cpp +++ b/src/animated-mesh.cpp @@ -23,28 +23,21 @@ #include #include "animated-mesh.h" #include "gsubr.h" - +#include "wrapped.h" using namespace irr; - SCM -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 ("scene_IAnimatedMesh_setAnimationSpeed", 2, 0, 0, - scene_IAnimatedMesh_setAnimationSpeed); - } - +void +init_animated_mesh (void) +{ + DEFINE_GSUBR ("IAnimatedMesh_setAnimationSpeed", 2, 0, 0, IAnimatedMesh_setAnimationSpeed); }