3 #ifndef __GAF_ASSET_H__
4 #define __GAF_ASSET_H__
6 #include "GAFCollections.h"
9 #include "GAFDelegates.h"
21 TextureAtlases_t m_textureAtlases;
22 AnimationMasks_t m_animationMasks;
23 AnimationObjects_t m_animationObjects;
24 AnimationFrames_t m_animationFrames;
25 AnimationSequences_t m_animationSequences;
26 NamedParts_t m_namedParts;
32 unsigned int m_sceneFps;
33 unsigned int m_sceneWidth;
34 unsigned int m_sceneHeight;
35 cocos2d::Color4B m_sceneColor;
38 float _usedAtlasContentScaleFactor;
48 void pushAnimationMask(
unsigned int objectId,
unsigned int elementAtlasIdRef);
49 void pushAnimationObjects(
unsigned int objectId,
unsigned int elementAtlasIdRef);
51 void pushAnimationSequence(
const std::string nameId,
int start,
int end);
52 void pushNamedPart(
unsigned int objectIdRef,
const std::string& name);
57 const AnimationObjects_t& getAnimationObjects()
const;
58 const AnimationMasks_t& getAnimationMasks()
const;
59 const AnimationFrames_t& getAnimationFrames()
const;
60 const NamedParts_t& getNamedParts()
const;
97 const unsigned int getSceneFps()
const;
98 const unsigned int getSceneWidth()
const;
99 const unsigned int getSceneHeight()
const;
100 const cocos2d::Color4B& getSceneColor()
const;
101 void setSceneFps(
unsigned int);
102 void setSceneWidth(
unsigned int);
103 void setSceneHeight(
unsigned int);
104 void setSceneColor(
const cocos2d::Color4B&);
108 #endif // __GAF_ASSET_H__
Definition: GAFAnimatedObject.h:33
Definition: GAFLoader.h:11
float usedAtlasContentScaleFactor() const
used content scale factor
Definition: GAFAsset.cpp:241
Definition: GAFAnimationSequence.h:6
Definition: GAFAsset.h:18
int animationFramesCount() const
total number of frames in animation
Definition: GAFAsset.cpp:128
static bool isAssetVersionPlayable(const char *version)
List of GAFAnimationFrame objects.
Definition: GAFAsset.cpp:61
Definition: GAFTextureAtlas.h:9
Definition: GAFDelegates.h:20
const GAFAnimationSequence * getSequenceByLastFrame(int frame) const
get GAFAnimationSequence by last frame number in sequence
Definition: GAFAsset.cpp:145
const GAFAnimationSequence * getSequence(const std::string &name) const
get GAFAnimationSequence by name specified in editor
Definition: GAFAsset.cpp:133
Definition: GAFAnimationFrame.h:9
const AnimationSequences_t & getAnimationSequences() const
get all of the sequences
Definition: GAFAsset.cpp:226
bool initWithGAFFile(const std::string &filePath, GAFTextureLoadDelegate *delegate=NULL)
Initializes asset with bGAF data.
Definition: GAFAsset.cpp:78
static void setDesiredCsf(float csf)
sets desired content scale factor
Definition: GAFAsset.cpp:20
const GAFAnimationSequence * getSequenceByFirstFrame(int frame) const
get GAFAnimationSequence by first frame number in sequence
Definition: GAFAsset.cpp:163
static float desiredCsf()
desired content scale factor
Definition: GAFAsset.cpp:15