include/irrTypes.h \
include/ISceneManager.h \
include/ISceneNode.h \
+ include/ISceneNodeAnimator.h \
include/ITexture.h \
include/IVideoDriver.h \
include/matrix4.h \
extern "C" {
#endif
- int irr_io_addFileArchive(irr_io_IFileSystem* filesystem,
- const char* filename,
- bool ignoreCase,
- bool ignorePaths,
- irr_io_E_FILE_ARCHIVE_TYPE archiveType,
- const char* password,
- irr_io_IFileArchive** retArchive);
+ int
+ irr_io_addFileArchive(irr_io_IFileSystem* filesystem,
+ const char* filename,
+ bool ignoreCase,
+ bool ignorePaths,
+ irr_io_E_FILE_ARCHIVE_TYPE archiveType,
+ const char* password,
+ irr_io_IFileArchive** retArchive);
#ifdef __cplusplus
}
#include "ICameraSceneNode.h"
#include "IMeshSceneNode.h"
#include "ISceneNode.h"
+#include "ISceneNodeAnimator.h"
#include "SKeyMap.h"
#include "SMaterial.h"
#include "vector3d.h"
int32_t minimalPolysPerNode,
bool alsoAddIfMeshPointerZero);
+ irr_scene_ISceneNodeAnimator*
+ irr_scene_createRotationAnimator(irr_scene_ISceneManager* smgr,
+ irr_core_vector3df* rotationSpeed);
+
void
irr_scene_drawAll(irr_scene_ISceneManager* smgr);
#include <stdbool.h>
#include "EMaterialFlags.h"
+#include "ISceneNodeAnimator.h"
#include "ITexture.h"
#include "matrix4.h"
#include "vector3d.h"
extern "C" {
#endif
+ void
+ irr_scene_addAnimator(irr_scene_ISceneNode* node,
+ irr_scene_ISceneNodeAnimator* animator);
+
irr_core_matrix4*
irr_scene_getAbsoluteTransformation(irr_scene_ISceneNode* node);
--- /dev/null
+/* c-irrlicht --- C bindings for Irrlicht Engine
+
+ Copyright (C) 2019 Javier Sancho <jsf@jsancho.org>
+
+ This file is part of c-irrlicht.
+
+ c-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.
+
+ c-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 __C_I_SCENE_NODE_ANIMATOR_H_INCLUDED__
+#define __C_I_SCENE_NODE_ANIMATOR_H_INCLUDED__
+
+typedef void irr_scene_ISceneNodeAnimator;
+
+#endif
#include "irrTypes.h"
#include "ISceneManager.h"
#include "ISceneNode.h"
+#include "ISceneNodeAnimator.h"
#include "ITexture.h"
#include "IVideoDriver.h"
#include "matrix4.h"
#include "IFileSystem.h"
extern "C" {
- int irr_io_addFileArchive(irr_io_IFileSystem* filesystem,
- const char* filename,
- bool ignoreCase,
- bool ignorePaths,
- irr_io_E_FILE_ARCHIVE_TYPE archiveType,
- const char* password,
- irr_io_IFileArchive** retArchive)
+ int
+ irr_io_addFileArchive(irr_io_IFileSystem* filesystem,
+ const char* filename,
+ bool ignoreCase,
+ bool ignorePaths,
+ irr_io_E_FILE_ARCHIVE_TYPE archiveType,
+ const char* password,
+ irr_io_IFileArchive** retArchive)
{
return ((irr::io::IFileSystem*)filesystem)
->addFileArchive(filename,
alsoAddIfMeshPointerZero);
}
+ irr_scene_ISceneNodeAnimator*
+ irr_scene_createRotationAnimator(irr_scene_ISceneManager* smgr,
+ irr_core_vector3df* rotationSpeed)
+ {
+ const irr::core::vector3df& irrRotationSpeed =
+ irr::core::vector3df(rotationSpeed->x, rotationSpeed->y, rotationSpeed->z);
+
+ return ((irr::scene::ISceneManager*)smgr)
+ ->createRotationAnimator(irrRotationSpeed);
+ }
+
void
irr_scene_drawAll(irr_scene_ISceneManager* smgr)
{
#include "ISceneNode.h"
extern "C" {
+ void
+ irr_scene_addAnimator(irr_scene_ISceneNode* node,
+ irr_scene_ISceneNodeAnimator* animator)
+ {
+ ((irr::scene::ISceneNode*)node)
+ ->addAnimator((irr::scene::ISceneNodeAnimator*)animator);
+ }
+
irr_core_matrix4*
irr_scene_getAbsoluteTransformation(irr_scene_ISceneNode* node)
{