mirror of
https://github.com/VCMP-SqMod/SqMod.git
synced 2025-07-22 16:57:12 +02:00
Implemented user defined type conversion for color types.
This commit is contained in:
@@ -493,6 +493,12 @@ bool Color4::operator >= (const Color4 & c) const
|
||||
return (r >= c.r) && (g >= c.g) && (b >= c.b) && (a >= c.a);
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
Color4::operator Color3 () const
|
||||
{
|
||||
return Color3(r, g, b);
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
SQInteger Color4::Cmp(const Color4 & c) const
|
||||
{
|
||||
|
Reference in New Issue
Block a user