make scale(RageColor) available
This commit is contained in:
@@ -262,4 +262,6 @@ public:
|
|||||||
float m[4][4];
|
float m[4][4];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
RageColor scale( float x, float l1, float h1, const RageColor &a, const RageColor &b );
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
@@ -426,7 +426,8 @@ void Sprite::DrawTexture( const TweenState *state )
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static RageColor scale( float x, float l1, float h1, const RageColor &a, const RageColor &b )
|
/* XXX: move to RageTypes.cpp */
|
||||||
|
RageColor scale( float x, float l1, float h1, const RageColor &a, const RageColor &b )
|
||||||
{
|
{
|
||||||
return RageColor(
|
return RageColor(
|
||||||
SCALE( x, l1, h1, a.r, b.r ),
|
SCALE( x, l1, h1, a.r, b.r ),
|
||||||
|
|||||||
Reference in New Issue
Block a user