aadded this-> to + operator to compile with .net
This commit is contained in:
parent
8ad902095a
commit
82d9dec26a
|
@ -382,10 +382,10 @@ template<>
|
||||||
inline Color4<unsigned char> Color4<unsigned char>::operator + ( const Color4<unsigned char> & p) const
|
inline Color4<unsigned char> Color4<unsigned char>::operator + ( const Color4<unsigned char> & p) const
|
||||||
{
|
{
|
||||||
return Color4<unsigned char>(
|
return Color4<unsigned char>(
|
||||||
math::Clamp(int(_v[0])+int(p._v[0]),0,255),
|
math::Clamp(int(this->_v[0])+int(p._v[0]),0,255),
|
||||||
math::Clamp(int(_v[1])+int(p._v[1]),0,255),
|
math::Clamp(int(this->_v[1])+int(p._v[1]),0,255),
|
||||||
math::Clamp(int(_v[2])+int(p._v[2]),0,255),
|
math::Clamp(int(this->_v[2])+int(p._v[2]),0,255),
|
||||||
math::Clamp(int(_v[3])+int(p._v[3]),0,255)
|
math::Clamp(int(this->_v[3])+int(p._v[3]),0,255)
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue