X-Git-Url: https://git.jsancho.org/?a=blobdiff_plain;f=src%2Fanimated-mesh.cpp;h=896cfe95e0fcb6ce8d696276eb0e12450c0ec429;hb=c4d9e46f268b4f7f738dd77685c632991125cec9;hp=9f461a216741dc1e41b4d3b8069643b45edf396e;hpb=2806f03eafc48ec9ef02a3dc2d74133eaf11ccc1;p=guile-irrlicht.git diff --git a/src/animated-mesh.cpp b/src/animated-mesh.cpp index 9f461a2..896cfe9 100644 --- a/src/animated-mesh.cpp +++ b/src/animated-mesh.cpp @@ -22,18 +22,22 @@ #include #include #include "animated-mesh.h" +#include "gsubr.h" #include "wrapped.h" -extern "C" { +using namespace irr; - void - init_animated_mesh (void) - { - init_animated_mesh_type (); - } - - DEFINE_WRAPPED_TYPE (irr::scene::IAnimatedMesh*, "animated-mesh", - init_animated_mesh_type, animated_mesh_p, - wrap_animated_mesh, unwrap_animated_mesh); +SCM +IAnimatedMesh_setAnimationSpeed (SCM animated_mesh, + SCM frames_per_second) +{ + ((scene::IAnimatedMesh*)scm_to_irr_pointer (animated_mesh))-> + setAnimationSpeed (scm_to_double (frames_per_second)); + return SCM_UNSPECIFIED; +} +void +init_animated_mesh (void) +{ + DEFINE_GSUBR ("IAnimatedMesh_setAnimationSpeed", 2, 0, 0, IAnimatedMesh_setAnimationSpeed); }