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:
@@ -460,6 +460,12 @@ bool Color3::operator >= (const Color3 & c) const
|
||||
return (r >= c.r) && (g >= c.g) && (b >= c.b);
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
Color3::operator Color4 () const
|
||||
{
|
||||
return Color4(r, g, b);
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
SQInteger Color3::Cmp(const Color3 & c) const
|
||||
{
|
||||
|
Reference in New Issue
Block a user