src/reference-counted.cpp \
src/scene-manager.cpp \
src/scene-node.cpp \
+ src/scene-node-animator.cpp \
src/texture.cpp \
src/vector2d.cpp \
src/vector3d.cpp \
#include "reference-counted.h"
#include "scene-manager.h"
#include "scene-node.h"
+#include "scene-node-animator.h"
#include "texture.h"
#include "vertex3d.h"
#include "video-driver.h"
init_reference_counted ();
init_scene_manager ();
init_scene_node ();
+ init_scene_node_animator ();
init_texture ();
init_vertex3d ();
init_video_driver ();
#include "mesh-scene-node.h"
#include "scene-manager.h"
#include "scene-node.h"
+#include "scene-node-animator.h"
#include "vector3d.h"
#include "wrapped.h"
(scm_t_subr)irr_scene_addCustomSceneNode);
scm_c_define_gsubr ("add-octree-scene-node!", 2, 0, 1,
(scm_t_subr)irr_scene_addOctreeSceneNode);
+ scm_c_define_gsubr ("create-rotation-animator", 2, 0, 0,
+ (scm_t_subr)irr_scene_createRotationAnimator);
scm_c_define_gsubr ("get-mesh", 2, 0, 0, (scm_t_subr)irr_scene_getMesh);
scm_c_define_gsubr ("get-root-scene-node", 1, 0, 0, (scm_t_subr)irr_scene_getRootSceneNode);
scm_c_define_gsubr ("get-scene-manager", 1, 0, 0, (scm_t_subr)irr_getSceneManager);
scm_c_export ("add-animated-mesh-scene-node!", "add-camera-scene-node!",
"add-camera-scene-node-fps!", "add-custom-scene-node!",
- "add-octree-scene-node!", "get-mesh", "get-root-scene-node",
+ "add-octree-scene-node!", "create-rotation-animator",
+ "get-mesh", "get-root-scene-node",
"get-scene-manager", NULL);
}
return wrap_mesh_scene_node (node);
}
+ SCM
+ irr_scene_createRotationAnimator (SCM wrapped_scene_manager,
+ SCM rotation_speed)
+ {
+ irr::scene::ISceneManager* smgr = unwrap_scene_manager (wrapped_scene_manager);
+ irr::scene::ISceneNodeAnimator* anim =
+ smgr->createRotationAnimator(scm_to_vector3df (rotation_speed));
+ return wrap_scene_node_animator (anim);
+ }
+
SCM
irr_scene_getMesh (SCM wrapped_scene_manager,
SCM filename)
SCM wrapped_mesh,
SCM rest);
+ SCM
+ irr_scene_createRotationAnimator (SCM wrapped_scene_manager,
+ SCM rotation_speed);
+
SCM
irr_scene_getMesh (SCM wrapped_scene_manager,
SCM filename);
--- /dev/null
+/* guile-irrlicht --- GNU Guile bindings for Irrlicht Engine
+
+ Copyright (C) 2020 Javier Sancho <jsf@jsancho.org>
+
+ This file is part of guile-irrlicht.
+
+ guile-irrlicht is free software; you can redistribute it and/or modify
+ it under the terms of the GNU Lesser General Public License as
+ published by the Free Software Foundation; either version 3 of the
+ License, or (at your option) any later version.
+
+ guile-irrlicht is distributed in the hope that it will be useful, but
+ WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ General Public License for more details.
+
+ You should have received a copy of the GNU Lesser General Public
+ License along with guile-irrlicht. If not, see
+ <http://www.gnu.org/licenses/>.
+*/
+
+#include <irrlicht/irrlicht.h>
+#include <libguile.h>
+#include "scene-node-animator.h"
+#include "wrapped.h"
+
+extern "C" {
+
+ void
+ init_scene_node_animator (void)
+ {
+ init_scene_node_animator_type ();
+ }
+
+ DEFINE_WRAPPED_TYPE (irr::scene::ISceneNodeAnimator*, "scene-node-animator",
+ init_scene_node_animator_type, scene_node_animator_p,
+ wrap_scene_node_animator, unwrap_scene_node_animator);
+
+}
--- /dev/null
+/* guile-irrlicht --- GNU Guile bindings for Irrlicht Engine
+
+ Copyright (C) 2020 Javier Sancho <jsf@jsancho.org>
+
+ This file is part of guile-irrlicht.
+
+ guile-irrlicht is free software; you can redistribute it and/or modify
+ it under the terms of the GNU Lesser General Public License as
+ published by the Free Software Foundation; either version 3 of the
+ License, or (at your option) any later version.
+
+ guile-irrlicht is distributed in the hope that it will be useful, but
+ WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ General Public License for more details.
+
+ You should have received a copy of the GNU Lesser General Public
+ License along with guile-irrlicht. If not, see
+ <http://www.gnu.org/licenses/>.
+*/
+
+#ifndef __GUILE_IRRLICHT_SCENE_NODE_ANIMATOR_H_INCLUDED__
+#define __GUILE_IRRLICHT_SCENE_NODE_ANIMATOR_H_INCLUDED__
+
+#include <irrlicht/irrlicht.h>
+#include <libguile.h>
+#include "wrapped.h"
+
+extern "C" {
+
+ void
+ init_scene_node_animator (void);
+
+ DECLARE_WRAPPED_TYPE (irr::scene::ISceneNodeAnimator*, init_scene_node_animator_type,
+ scene_node_animator_p, wrap_scene_node_animator,
+ unwrap_scene_node_animator);
+
+}
+
+#endif