@@ -9,30 +9,31 @@ UNIFIED_BEGIN_NAMESPACE
99UNIFIED_GRAPHICS_BEGIN_NAMESPACE
1010
1111template <class _type >
12- struct Vertex <_type, 2 > : public Point<_type, 2 >
12+ struct Vertex <_type, 2 >
1313{
1414
15- UNIFIED_CONSTEXPR Vertex () : Point<_type, 2> (), color(), texture() { }
15+ UNIFIED_CONSTEXPR Vertex () : point (), color(), texture() { }
1616
17- UNIFIED_CONSTEXPR Vertex (const Point<_type, 2 > &point) : Point<_type, 2> (point), color(), texture() { }
17+ UNIFIED_CONSTEXPR Vertex (const Point<_type, 2 > &point) : point (point), color(), texture() { }
1818
19- UNIFIED_CONSTEXPR Vertex (const Point<_type, 2 > &point, const Color &color) : Point<_type, 2> (point), color(color), texture() { }
19+ UNIFIED_CONSTEXPR Vertex (const Point<_type, 2 > &point, const Color &color) : point (point), color(color), texture() { }
2020
21- UNIFIED_CONSTEXPR Vertex (const Point<_type, 2 > &point, const Point<_type, 2 > &vertex) : Point<_type, 2> (point), color(), texture(vertex) { }
21+ UNIFIED_CONSTEXPR Vertex (const Point<_type, 2 > &point, const Point<_type, 2 > &vertex) : point (point), color(), texture(vertex) { }
2222
23- UNIFIED_CONSTEXPR Vertex (const Point<_type, 2 > &point, const Color &color, const Point<_type, 2 > &vertex) : Point<_type, 2> (point), color(color), texture(vertex) { }
23+ UNIFIED_CONSTEXPR Vertex (const Point<_type, 2 > &point, const Color &color, const Point<_type, 2 > &vertex) : point (point), color(color), texture(vertex) { }
2424
2525 UNIFIED_CONSTEXPR bool operator ==(const Vertex &r) const {
26- return this ->x == r.x && this ->y == r.y && this ->color == r.color ;
26+ return this ->point == r.point && this ->color == r.color && this ->texture == r.texture ;
2727 }
2828
2929 UNIFIED_CONSTEXPR bool operator !=(const Vertex &r) const {
3030 return !this ->operator ==(r);
3131 }
3232
33+ Point<_type, 2 > point;
3334 Color color;
3435 Point<_type, 2 > texture;
35-
36+
3637};
3738
3839typedef Vertex<unsigned , 2 > Vertex2u;
0 commit comments