aboutsummaryrefslogtreecommitdiff
path: root/src/libjin/math/je_matrix.h
diff options
context:
space:
mode:
authorchai <chaifix@163.com>2018-12-21 19:02:22 +0800
committerchai <chaifix@163.com>2018-12-21 19:02:22 +0800
commit84a663cb70b057a5ce0c9ff1910bc2eb9c0ba653 (patch)
tree625d2a7804c6f29aac367098972f96a47fcb7ae3 /src/libjin/math/je_matrix.h
parent90cd4ff40e647e4150638e69f80ac587ceff1631 (diff)
+2d mesh
Diffstat (limited to 'src/libjin/math/je_matrix.h')
-rw-r--r--src/libjin/math/je_matrix.h18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/libjin/math/je_matrix.h b/src/libjin/math/je_matrix.h
index 65f080b..7955de1 100644
--- a/src/libjin/math/je_matrix.h
+++ b/src/libjin/math/je_matrix.h
@@ -3,21 +3,21 @@
namespace JinEngine
{
- namespace Math
+
+ // Forward declarations.
+ namespace Graphics
{
+ struct Vertex;
+ }
- struct vertex
- {
- unsigned char r, g, b, a;
- float x, y;
- float s, t;
- };
+ namespace Math
+ {
///
/// This class is the basis for all transformations in LOVE. Althought not
/// really needed for 2D, it contains 4x4 elements to be compatible with
/// OpenGL without conversions.
- /// Ҫתõľ
+ /// ҪתõOpenGL
/// https://blog.csdn.net/candycat1992/article/details/8830894
///
class Matrix
@@ -150,7 +150,7 @@ namespace JinEngine
/// @param src The source vertices.
/// @param size The number of vertices.
///
- void transform(vertex * dst, const vertex * src, int size) const;
+ void transform(Graphics::Vertex* dst, const Graphics::Vertex * src, int size) const;
};