From 7028cbe09c688437910a25623098762bf0fa592d Mon Sep 17 00:00:00 2001 From: David Walter Seikel Date: Mon, 28 Mar 2016 22:28:34 +1000 Subject: Move Irrlicht to src/others. --- .../Irrlicht/CDefaultSceneNodeAnimatorFactory.h | 75 ++++++++++++++++++++++ 1 file changed, 75 insertions(+) create mode 100644 src/others/irrlicht-1.8.1/source/Irrlicht/CDefaultSceneNodeAnimatorFactory.h (limited to 'src/others/irrlicht-1.8.1/source/Irrlicht/CDefaultSceneNodeAnimatorFactory.h') diff --git a/src/others/irrlicht-1.8.1/source/Irrlicht/CDefaultSceneNodeAnimatorFactory.h b/src/others/irrlicht-1.8.1/source/Irrlicht/CDefaultSceneNodeAnimatorFactory.h new file mode 100644 index 0000000..0761c6c --- /dev/null +++ b/src/others/irrlicht-1.8.1/source/Irrlicht/CDefaultSceneNodeAnimatorFactory.h @@ -0,0 +1,75 @@ +// Copyright (C) 2002-2012 Nikolaus Gebhardt +// This file is part of the "Irrlicht Engine". +// For conditions of distribution and use, see copyright notice in irrlicht.h + +#ifndef __C_DEFAULT_SCENE_NODE_ANIMATOR_FACTORY_H_INCLUDED__ +#define __C_DEFAULT_SCENE_NODE_ANIMATOR_FACTORY_H_INCLUDED__ + +#include "ISceneNodeAnimatorFactory.h" + +namespace irr +{ +namespace gui +{ + class ICursorControl; +} +namespace scene +{ + class ISceneNodeAnimator; + class ISceneManager; + + //! Interface making it possible to dynamicly create scene nodes animators + class CDefaultSceneNodeAnimatorFactory : public ISceneNodeAnimatorFactory + { + public: + + CDefaultSceneNodeAnimatorFactory(ISceneManager* mgr, gui::ICursorControl* crs); + + virtual ~CDefaultSceneNodeAnimatorFactory(); + + //! creates a scene node animator based on its type id + /** \param type: Type of the scene node animator to add. + \param target: Target scene node of the new animator. + \return Returns pointer to the new scene node animator or null if not successful. You need to + drop this pointer after calling this, see IReferenceCounted::drop() for details. */ + virtual ISceneNodeAnimator* createSceneNodeAnimator(ESCENE_NODE_ANIMATOR_TYPE type, ISceneNode* target); + + //! creates a scene node animator based on its type name + /** \param typeName: Type of the scene node animator to add. + \param target: Target scene node of the new animator. + \return Returns pointer to the new scene node animator or null if not successful. You need to + drop this pointer after calling this, see IReferenceCounted::drop() for details. */ + virtual ISceneNodeAnimator* createSceneNodeAnimator(const char* typeName, ISceneNode* target); + + //! returns amount of scene node animator types this factory is able to create + virtual u32 getCreatableSceneNodeAnimatorTypeCount() const; + + //! returns type of a createable scene node animator type + /** \param idx: Index of scene node animator type in this factory. Must be a value between 0 and + getCreatableSceneNodeTypeCount() */ + virtual ESCENE_NODE_ANIMATOR_TYPE getCreateableSceneNodeAnimatorType(u32 idx) const; + + //! returns type name of a createable scene node animator type + /** \param idx: Index of scene node animator type in this factory. Must be a value between 0 and + getCreatableSceneNodeAnimatorTypeCount() */ + virtual const c8* getCreateableSceneNodeAnimatorTypeName(u32 idx) const; + + //! returns type name of a createable scene node animator type + /** \param type: Type of scene node animator. + \return: Returns name of scene node animator type if this factory can create the type, otherwise 0. */ + virtual const c8* getCreateableSceneNodeAnimatorTypeName(ESCENE_NODE_ANIMATOR_TYPE type) const; + + private: + + ESCENE_NODE_ANIMATOR_TYPE getTypeFromName(const c8* name) const; + + ISceneManager* Manager; + gui::ICursorControl* CursorControl; + }; + + +} // end namespace scene +} // end namespace irr + +#endif + -- cgit v1.1