aboutsummaryrefslogtreecommitdiff
path: root/src/libjin/graphics/je_sprite.h
diff options
context:
space:
mode:
authorchai <chaifix@163.com>2019-01-12 21:48:33 +0800
committerchai <chaifix@163.com>2019-01-12 21:48:33 +0800
commit8b00d67febf133e89f6a0bfabc41feed555dc4a9 (patch)
treefe48ef17c250afa40c2588300fcdb5920dba6951 /src/libjin/graphics/je_sprite.h
parenta907c39756ef6b368d06643afa491c49a9044a8e (diff)
*去掉文件前缀je_
Diffstat (limited to 'src/libjin/graphics/je_sprite.h')
-rw-r--r--src/libjin/graphics/je_sprite.h55
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