From 71416cb4b388956d6132f6c8b5b77b0fb38b7a27 Mon Sep 17 00:00:00 2001 From: chai Date: Sat, 22 Dec 2018 10:46:06 +0800 Subject: =?UTF-8?q?*=E4=BF=AE=E6=94=B9vector=E5=88=86=E9=87=8F=E5=88=AB?= =?UTF-8?q?=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/libjin/graphics/je_vertex.h | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'src/libjin/graphics/je_vertex.h') 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 xy; + Math::Vector2 uv; + Color color; }; } -- cgit v1.1-26-g67d0