aboutsummaryrefslogtreecommitdiff
path: root/src/libjin/math/je_matrix.h
diff options
context:
space:
mode:
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;
};