mirror of
https://github.com/openmoh/openmohaa.git
synced 2025-04-28 13:47:58 +03:00
Add UColor copy constructor
This commit is contained in:
parent
ce38cf9040
commit
3bcd5cf308
2 changed files with 9 additions and 0 deletions
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue