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