Added missing xzyw accessor to Vec4ub

This commit is contained in:
Julien Valentin 2016-07-04 10:01:17 +01:00 committed by Robert Osfield
parent 1f3559e0b2
commit 50f6cf6a69

View File

@ -74,6 +74,16 @@ class Vec4ub
inline value_type& operator [] (unsigned int i) { return _v[i]; }
inline value_type operator [] (unsigned int i) const { return _v[i]; }
inline value_type& x() { return _v[0]; }
inline value_type& y() { return _v[1]; }
inline value_type& z() { return _v[2]; }
inline value_type& w() { return _v[3]; }
inline value_type x() const { return _v[0]; }
inline value_type y() const { return _v[1]; }
inline value_type z() const { return _v[2]; }
inline value_type w() const { return _v[3]; }
inline value_type& r() { return _v[0]; }
inline value_type& g() { return _v[1]; }
inline value_type& b() { return _v[2]; }