aboutsummaryrefslogtreecommitdiff
path: root/src/libjin/graphics/mesh.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/libjin/graphics/mesh.h')
-rw-r--r--src/libjin/graphics/mesh.h74
1 files changed, 37 insertions, 37 deletions
diff --git a/src/libjin/graphics/mesh.h b/src/libjin/graphics/mesh.h
index d17fcea..511a85c 100644
--- a/src/libjin/graphics/mesh.h
+++ b/src/libjin/graphics/mesh.h
@@ -10,43 +10,43 @@
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 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