diff options
author | chai <chaifix@163.com> | 2019-01-12 21:48:33 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2019-01-12 21:48:33 +0800 |
commit | 8b00d67febf133e89f6a0bfabc41feed555dc4a9 (patch) | |
tree | fe48ef17c250afa40c2588300fcdb5920dba6951 /src/libjin/graphics/je_sprite.h | |
parent | a907c39756ef6b368d06643afa491c49a9044a8e (diff) |
*去掉文件前缀je_
Diffstat (limited to 'src/libjin/graphics/je_sprite.h')
-rw-r--r-- | src/libjin/graphics/je_sprite.h | 55 |
1 files changed, 0 insertions, 55 deletions
diff --git a/src/libjin/graphics/je_sprite.h b/src/libjin/graphics/je_sprite.h deleted file mode 100644 index fe38a4a..0000000 --- a/src/libjin/graphics/je_sprite.h +++ /dev/null @@ -1,55 +0,0 @@ -#ifndef __JE_SPRITE_H__ -#define __JE_SPRITE_H__ - -#include "../common/je_types.h" -#include "../math/je_vector2.hpp" - -#include "je_color.h" -#include "je_graphic.h" -#include "je_renderable.h" - -namespace JinEngine -{ - namespace Graphics - { - - /// - /// A sprite is unit of rendering. Animation is based on sprite, but not texture or other graphic stuff. - /// - class Sprite : public Object, public Renderable - { - public: - - Sprite(const Graphic* graphic, const Math::Quad& quad, Origin origin); - - Sprite(const Graphic* graphic, const Math::Quad& quad, float ox, float oy); - - Sprite(const Graphic* graphic, Origin origin); - - Sprite(const Graphic* graphic, float ox, float oy); - - virtual ~Sprite(); - - Math::Vector2<int> getSize(); - - void render(float x, float y, float sx, float sy, float r) const override; - - private: - - void setOrigin(Origin origin); - - const Math::Vector2<float> mOrigin; - - /// - /// Quad of graphic. - /// - const Math::Quad mQuad; - - const Graphic* mGraphic; - - }; - - } // namespace Graphics -} // namespace JinEngine - -#endif
\ No newline at end of file |