From 5c6cd59375c0f69173a439e4a8fc710c17ef4f5f Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Mon, 27 Feb 2006 03:06:43 +0000 Subject: [PATCH] add GetCurrentDiffuseAlpha --- stepmania/src/Actor.h | 1 + 1 file changed, 1 insertion(+) diff --git a/stepmania/src/Actor.h b/stepmania/src/Actor.h index e5dd456d4c..741f3d40a2 100644 --- a/stepmania/src/Actor.h +++ b/stepmania/src/Actor.h @@ -170,6 +170,7 @@ public: virtual void SetDiffuse( RageColor c ) { for(int i=0; i<4; i++) DestTweenState().diffuse[i] = c; }; virtual void SetDiffuseAlpha( float f ) { for(int i = 0; i < 4; ++i) { RageColor c = GetDiffuses( i ); c.a = f; SetDiffuses( i, c ); } } + float GetCurrentDiffuseAlpha() const { return m_current.diffuse[0].a; } void SetDiffuseColor( RageColor c ); void SetDiffuses( int i, RageColor c ) { DestTweenState().diffuse[i] = c; }; void SetDiffuseUpperLeft( RageColor c ) { DestTweenState().diffuse[0] = c; };