aboutsummaryrefslogtreecommitdiff
path: root/src/libjin/graphics/animations/animation.h
diff options
context:
space:
mode:
authorchai <chaifix@163.com>2020-02-11 11:29:07 +0800
committerchai <chaifix@163.com>2020-02-11 11:29:07 +0800
commit160e1299ef3d95f8e8c48706d7f61dd3dc6c6b60 (patch)
treeabe5ae5242d9cc6caf6edf103e662c44e978fca0 /src/libjin/graphics/animations/animation.h
parente095043485d1d298571af6d9eca7f0db9009ea7a (diff)
*修改 tab大小HEADmaster
Diffstat (limited to 'src/libjin/graphics/animations/animation.h')
-rw-r--r--src/libjin/graphics/animations/animation.h62
1 files changed, 31 insertions, 31 deletions
diff --git a/src/libjin/graphics/animations/animation.h b/src/libjin/graphics/animations/animation.h
index 72565fc..f48ff33 100644
--- a/src/libjin/graphics/animations/animation.h
+++ b/src/libjin/graphics/animations/animation.h
@@ -10,50 +10,50 @@
namespace JinEngine
{
- namespace Graphics
- {
- namespace Animations
- {
+ namespace Graphics
+ {
+ namespace Animations
+ {
- ///
- /// Animation clip with key.
- ///
- class Animation : public Object
- {
- public:
- Animation();
-
- void addFrame(const Sprite* frame);
+ ///
+ /// Animation clip with key.
+ ///
+ class Animation : public Object
+ {
+ public:
+ Animation();
+
+ void addFrame(const Sprite* frame);
- void addFrames(const std::vector<Sprite*>& frames);
+ void addFrames(const std::vector<Sprite*>& frames);
- void setLoop(bool loop);
+ void setLoop(bool loop);
- void setSpeed(float speed);
+ void setSpeed(float speed);
- bool isLoop() const;
+ bool isLoop() const;
- float getSpeed() const;
+ float getSpeed() const;
- uint getFrameCount() const;
+ uint getFrameCount() const;
- const Sprite* getFrame(uint index) const;
+ const Sprite* getFrame(uint index) const;
- private:
+ private:
- std::vector<const Sprite*> mFrames;
+ std::vector<const Sprite*> mFrames;
- ///
- /// Frame per second.
- ///
- float mSpeed;
+ ///
+ /// Frame per second.
+ ///
+ float mSpeed;
- float mLoop;
-
- };
+ float mLoop;
+
+ };
- } // namespace Animations
- } // namespace Graphics
+ } // namespace Animations
+ } // namespace Graphics
} // namespace JinEngine
#endif \ No newline at end of file