#include <irrlicht/irrlicht.h>
#include <libguile.h>
#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);
}