Add UColor copy constructor

This commit is contained in:
smallmodel 2025-01-07 00:26:33 +01:00
parent ce38cf9040
commit 3bcd5cf308
No known key found for this signature in database
GPG key ID: 9F2D623CEDF08512
2 changed files with 9 additions and 0 deletions

View file

@ -121,6 +121,14 @@ UColor::UColor
}
}
UColor::UColor(const UColor& color)
: r(color.r)
, g(color.g)
, b(color.b)
, a(color.a)
{
}
UColor::operator float *( )
{
return ( float * )this;

View file

@ -32,6 +32,7 @@ public:
UColor();
UColor( float r, float g, float b, float a = 1.0 );
UColor( class UColorHSV hsv );
UColor( const UColor& color );
operator float *( );
operator float *( ) const;