aboutsummaryrefslogtreecommitdiff
path: root/src/libjin/graphics/je_vertex.h
diff options
context:
space:
mode:
authorchai <chaifix@163.com>2018-12-22 10:46:06 +0800
committerchai <chaifix@163.com>2018-12-22 10:46:06 +0800
commit71416cb4b388956d6132f6c8b5b77b0fb38b7a27 (patch)
treeca1c9609f3c793a636b0f085e7176c71fb0003a2 /src/libjin/graphics/je_vertex.h
parent1df83e68bc08bc3f9b429b794fc2e4ba86389dde (diff)
*修改vector分量别名
Diffstat (limited to 'src/libjin/graphics/je_vertex.h')
-rw-r--r--src/libjin/graphics/je_vertex.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/libjin/graphics/je_vertex.h b/src/libjin/graphics/je_vertex.h
index d149cfc..d2b482c 100644
--- a/src/libjin/graphics/je_vertex.h
+++ b/src/libjin/graphics/je_vertex.h
@@ -1,6 +1,8 @@
#ifndef __JE_MATH_VERTEX_H__
#define __JE_MATH_VERTEX_H__
+#include "../math/je_vector2.hpp"
+
#include "je_color.h"
namespace JinEngine
@@ -10,9 +12,9 @@ namespace JinEngine
struct Vertex
{
- float x, y; // Coordinates
- float u, v; // UV
- Color color; // Color
+ Math::Vector2<float> xy;
+ Math::Vector2<float> uv;
+ Color color;
};
}