X-Git-Url: https://git.jsancho.org/?a=blobdiff_plain;f=src%2Fanimated-mesh.cpp;h=80b6229d8adb941b85563029767dc4b6cd63a415;hb=73e48b7e6472724899af8284491802e950156004;hp=9f461a216741dc1e41b4d3b8069643b45edf396e;hpb=2806f03eafc48ec9ef02a3dc2d74133eaf11ccc1;p=guile-irrlicht.git diff --git a/src/animated-mesh.cpp b/src/animated-mesh.cpp index 9f461a2..80b6229 100644 --- a/src/animated-mesh.cpp +++ b/src/animated-mesh.cpp @@ -22,18 +22,28 @@ #include #include #include "animated-mesh.h" -#include "wrapped.h" +#include "gsubr.h" + + +using namespace irr; + + +SCM +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) { - init_animated_mesh_type (); + DEFINE_GSUBR ("IAnimatedMesh_setAnimationSpeed", 2, 0, 0, IAnimatedMesh_setAnimationSpeed); } - DEFINE_WRAPPED_TYPE (irr::scene::IAnimatedMesh*, "animated-mesh", - init_animated_mesh_type, animated_mesh_p, - wrap_animated_mesh, unwrap_animated_mesh); - }