aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/others/irrlicht-1.8.1/source/Irrlicht/CDefaultSceneNodeAnimatorFactory.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/others/irrlicht-1.8.1/source/Irrlicht/CDefaultSceneNodeAnimatorFactory.h')
-rw-r--r--src/others/irrlicht-1.8.1/source/Irrlicht/CDefaultSceneNodeAnimatorFactory.h75
1 files changed, 75 insertions, 0 deletions
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 @@
1// Copyright (C) 2002-2012 Nikolaus Gebhardt
2// This file is part of the "Irrlicht Engine".
3// For conditions of distribution and use, see copyright notice in irrlicht.h
4
5#ifndef __C_DEFAULT_SCENE_NODE_ANIMATOR_FACTORY_H_INCLUDED__
6#define __C_DEFAULT_SCENE_NODE_ANIMATOR_FACTORY_H_INCLUDED__
7
8#include "ISceneNodeAnimatorFactory.h"
9
10namespace irr
11{
12namespace gui
13{
14 class ICursorControl;
15}
16namespace scene
17{
18 class ISceneNodeAnimator;
19 class ISceneManager;
20
21 //! Interface making it possible to dynamicly create scene nodes animators
22 class CDefaultSceneNodeAnimatorFactory : public ISceneNodeAnimatorFactory
23 {
24 public:
25
26 CDefaultSceneNodeAnimatorFactory(ISceneManager* mgr, gui::ICursorControl* crs);
27
28 virtual ~CDefaultSceneNodeAnimatorFactory();
29
30 //! creates a scene node animator based on its type id
31 /** \param type: Type of the scene node animator to add.
32 \param target: Target scene node of the new animator.
33 \return Returns pointer to the new scene node animator or null if not successful. You need to
34 drop this pointer after calling this, see IReferenceCounted::drop() for details. */
35 virtual ISceneNodeAnimator* createSceneNodeAnimator(ESCENE_NODE_ANIMATOR_TYPE type, ISceneNode* target);
36
37 //! creates a scene node animator based on its type name
38 /** \param typeName: Type of the scene node animator to add.
39 \param target: Target scene node of the new animator.
40 \return Returns pointer to the new scene node animator or null if not successful. You need to
41 drop this pointer after calling this, see IReferenceCounted::drop() for details. */
42 virtual ISceneNodeAnimator* createSceneNodeAnimator(const char* typeName, ISceneNode* target);
43
44 //! returns amount of scene node animator types this factory is able to create
45 virtual u32 getCreatableSceneNodeAnimatorTypeCount() const;
46
47 //! returns type of a createable scene node animator type
48 /** \param idx: Index of scene node animator type in this factory. Must be a value between 0 and
49 getCreatableSceneNodeTypeCount() */
50 virtual ESCENE_NODE_ANIMATOR_TYPE getCreateableSceneNodeAnimatorType(u32 idx) const;
51
52 //! returns type name of a createable scene node animator type
53 /** \param idx: Index of scene node animator type in this factory. Must be a value between 0 and
54 getCreatableSceneNodeAnimatorTypeCount() */
55 virtual const c8* getCreateableSceneNodeAnimatorTypeName(u32 idx) const;
56
57 //! returns type name of a createable scene node animator type
58 /** \param type: Type of scene node animator.
59 \return: Returns name of scene node animator type if this factory can create the type, otherwise 0. */
60 virtual const c8* getCreateableSceneNodeAnimatorTypeName(ESCENE_NODE_ANIMATOR_TYPE type) const;
61
62 private:
63
64 ESCENE_NODE_ANIMATOR_TYPE getTypeFromName(const c8* name) const;
65
66 ISceneManager* Manager;
67 gui::ICursorControl* CursorControl;
68 };
69
70
71} // end namespace scene
72} // end namespace irr
73
74#endif
75