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