aboutsummaryrefslogtreecommitdiff
path: root/src/libjin/graphics/je_mesh.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_mesh.h
parenta907c39756ef6b368d06643afa491c49a9044a8e (diff)
*去掉文件前缀je_
Diffstat (limited to 'src/libjin/graphics/je_mesh.h')
-rw-r--r--src/libjin/graphics/je_mesh.h52
1 files changed, 0 insertions, 52 deletions
diff --git a/src/libjin/graphics/je_mesh.h b/src/libjin/graphics/je_mesh.h
deleted file mode 100644
index 1dbf3a4..0000000
--- a/src/libjin/graphics/je_mesh.h
+++ /dev/null
@@ -1,52 +0,0 @@
-#ifndef __JE_MESH_H__
-#define __JE_MESH_H__
-
-#include <vector>
-
-#include "../math/je_bbox.h"
-
-#include "je_vertex.h"
-#include "je_graphic.h"
-
-namespace JinEngine
-{
- namespace Graphics
- {
-
- ///
- /// A 2D mesh.
- ///
- class Mesh : public Renderable, public Object
- {
- public:
- Mesh();
-
- void setGraphic(const Graphic* graphic);
- void pushVertex(float x, float y, float u, float v, Color color = Color::WHITE);
- void pushVertex(const Vertex& vertex);
- inline Math::BBox getBound() { return mBound; }
-
- void render(float x, float y, float sx, float sy, float r, float ox = 0, float oy = 0) const;
-
- private:
- ///
- /// Graphic binded.
- ///
- const Graphic* mGraphic;
-
- ///
- /// Bound box of mesh.
- ///
- Math::BBox mBound;
-
- ///
- ///
- ///
- std::vector<Vertex> mVertices;
-
- };
-
- } // namespace Graphics
-} // namespace JinEngine
-
-#endif \ No newline at end of file