Fission FSN
Loading...
Searching...
No Matches
fsCAnimationDataPlayfirst.h
Go to the documentation of this file.
1/********************************************************************
2*
3* Created: 13/3/2014 16:55
4*
5* File: fsCAnimationDataPlayfirst.h
6*
7* Author: Mick Waites
8*
9* Purpose: Shared data from which AnimatingSprites are created.
10*
11*********************************************************************/
12
13#ifndef fsCAnimationDataPlayfirsthdr
14#define fsCAnimationDataPlayfirsthdr
15
16#include <vector>
17
20
22
23class fsCResourceName;
24class fsCSpriteFrame;
26class fsCBrush;
27
28
30{
33 friend class fsCSpriteFrame;
34
35public:
36
37 fsS32 blendModeGet() const;
38
40
41protected:
42
44 {
46 {
47 }
48
49 sSpriteFrameInfo(std::shared_ptr<fsCBrush> pBrush, fsF32 pAlpha, const fsAffineMtx2d& pMtx) :
50 mBrush(pBrush),
51 mAlpha(pAlpha),
52 mMtx(pMtx)
53 {
54 }
55
56 std::shared_ptr<fsCBrush> mBrush;
59 };
60
62
63 void initialiseDo(const fsCResourceName& pFileName, fsBool pHitMap) override;
64
67
68 std::vector<std::shared_ptr<sSpriteFrameInfo>> mSpriteFramesInfo;
69 std::vector<std::shared_ptr<fsCAnimationTimeline>> mTimelines;
70
71 std::shared_ptr<fsCBrush> mAnimBrush;
72
74
76
77private:
78};
79
80#endif
Definition fsAffineMtx2d.h:27
fsS32 blendModeGet() const
Definition fsCAnimationDataPlayfirst.cpp:42
friend class fsCSpriteFrame
Definition fsCAnimationDataPlayfirst.h:33
friend class fsCAnimatingSpritePlayfirst
Definition fsCAnimationDataPlayfirst.h:32
friend class fsCAnimationDataManager
Definition fsCAnimationDataPlayfirst.h:31
fsBool mLooping
Definition fsCAnimationDataPlayfirst.h:73
std::vector< std::shared_ptr< sSpriteFrameInfo > > mSpriteFramesInfo
Definition fsCAnimationDataPlayfirst.h:68
fsCAnimationDataPlayfirst()
Definition fsCAnimationDataPlayfirst.cpp:344
void framesParse(fsIXmlNode::_iterRef pParent)
Definition fsCAnimationDataPlayfirst.cpp:105
std::shared_ptr< fsCBrush > mAnimBrush
Definition fsCAnimationDataPlayfirst.h:71
void initialiseDo(const fsCResourceName &pFileName, fsBool pHitMap) override
Definition fsCAnimationDataPlayfirst.cpp:47
void timelineParse(fsIXmlNode::_iterRef pParent)
Definition fsCAnimationDataPlayfirst.cpp:230
virtual ~fsCAnimationDataPlayfirst()
Definition fsCAnimationDataPlayfirst.cpp:352
std::vector< std::shared_ptr< fsCAnimationTimeline > > mTimelines
Definition fsCAnimationDataPlayfirst.h:69
fsS32 mBlendMode
Definition fsCAnimationDataPlayfirst.h:75
Definition fsCAnimationTimeline.h:25
Definition fsCBrush.h:26
Definition fsCResourceName.h:32
Definition fsCSpriteFrame.h:29
fsIAnimationData()
Definition fsIAnimationData.cpp:8
std::shared_ptr< _iter > _iterRef
Definition fsIXmlNode.h:35
bool fsBool
Definition fsBaseTypes.h:26
int fsS32
Definition fsBaseTypes.h:20
float fsF32
Definition fsBaseTypes.h:28
std::shared_ptr< fsCBrush > mBrush
Definition fsCAnimationDataPlayfirst.h:56
sSpriteFrameInfo()
Definition fsCAnimationDataPlayfirst.h:45
sSpriteFrameInfo(std::shared_ptr< fsCBrush > pBrush, fsF32 pAlpha, const fsAffineMtx2d &pMtx)
Definition fsCAnimationDataPlayfirst.h:49
fsF32 mAlpha
Definition fsCAnimationDataPlayfirst.h:57
fsAffineMtx2d mMtx
Definition fsCAnimationDataPlayfirst.h:58