#include <irrlicht/irrlicht.h>
#include <libguile.h>
#include "animated-mesh.h"
-#include "wrapped.h"
+#include "gsubr.h"
+
+
+using namespace irr;
+
+
+SCM
+irr_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 ("irr_scene_IAnimatedMesh_setAnimationSpeed", 2, 0, 0,
+ irr_scene_IAnimatedMesh_setAnimationSpeed);
}
- DEFINE_WRAPPED_TYPE (irr::scene::IAnimatedMesh*, "animated-mesh",
- init_animated_mesh_type, animated_mesh_p,
- wrap_animated_mesh, unwrap_animated_mesh);
-
}