#include "animated-mesh-scene-node.h"
#include "mesh-scene-node.h"
#include "scene-node.h"
+#include "scene-node-animator.h"
#include "texture.h"
#include "vector3d.h"
#include "wrapped.h"
init_scene_node (void)
{
init_scene_node_type ();
+ scm_c_define_gsubr ("add-animator!", 2, 0, 0, (scm_t_subr)irr_scene_addAnimator);
scm_c_define_gsubr ("set-material-texture!", 3, 0, 0, (scm_t_subr)irr_scene_setMaterialTexture);
- scm_c_export ("set-material-texture!", NULL);
+ scm_c_export ("add-animator!", "set-material-texture!", NULL);
}
DEFINE_WRAPPED_TYPE (irr::scene::ISceneNode*, "scene-node",
init_scene_node_type, scene_node_p,
wrap_scene_node, unwrap_scene_node);
+ SCM
+ irr_scene_addAnimator (SCM wrapped_scene_node,
+ SCM animator)
+ {
+ irr::scene::ISceneNode* node = unwrap_scene_node (wrapped_scene_node);
+ node->addAnimator (unwrap_scene_node_animator (animator));
+ return SCM_UNSPECIFIED;
+ }
+
SCM
irr_scene_setMaterialTexture (SCM wrapped_scene_node,
SCM texture_layer,
DECLARE_WRAPPED_TYPE (irr::scene::ISceneNode*, init_scene_node_type,
scene_node_p, wrap_scene_node, unwrap_scene_node);
+ SCM
+ irr_scene_addAnimator (SCM wrapped_scene_node,
+ SCM animator);
+
SCM
irr_scene_setMaterialTexture (SCM wrapped_scene_node,
SCM texture_layer,