Fission FSN
Loading...
Searching...
No Matches
fsC3dAnimationData.h
Go to the documentation of this file.
1/********************************************************************
2*
3* File: fsC3dAnimationData.h
4*
5* Purpose: Marmalade 3D animation data
6*
7*********************************************************************/
8
9#ifndef fsC3dAnimationDatahdr
10#define fsC3dAnimationDatahdr
11
12#include <3d/CCAnimation3D.h>
13
14#include <fsCore/fsStr.h>
15
17
18
20{
21 friend class fsI3dAnimationData;
22 friend class fsCRetained3dSprite;
23
24public:
25
26 cocos2d::Animation3D* get(const fsStr& panimationName);
27
29
30protected:
31
32 static fsStr filenameGet(const fsStr& pFileName, const fsStr& pAnimationName);
33
34 fsC3dAnimationData(const fsStr& pFileName, const fsStr& pAnimationName);
35
36private:
37
38 fsStr animationNameGet(const fsStr& pAnimationName) const;
39
40 cocos2d::Animation3D* createCocosAnimation(const fsStr& pAnimationName);
41
42 std::map<fsStr, cocos2d::Animation3D*> mAnims;
43 fsStr mModelFilename;
44};
45
46#endif
Definition fsC3dAnimationData.h:20
virtual ~fsC3dAnimationData()
friend class fsI3dAnimationData
Definition fsC3dAnimationData.h:21
fsC3dAnimationData(const fsStr &pFileName, const fsStr &pAnimationName)
friend class fsCRetained3dSprite
Definition fsC3dAnimationData.h:22
static fsStr filenameGet(const fsStr &pFileName, const fsStr &pAnimationName)
cocos2d::Animation3D * get(const fsStr &panimationName)
Definition fsI3dAnimationData.h:23
Definition fsStr.h:23