add GetDiffuseAlpha

This commit is contained in:
Chris Danford
2005-08-03 03:12:35 +00:00
parent 5cbc1fcd5f
commit 2ca9f32459
2 changed files with 14 additions and 11 deletions
+2
View File
@@ -1342,6 +1342,7 @@ public:
static int GetBaseZoomX( T* p, lua_State *L ) { lua_pushnumber( L, p->GetBaseZoomX() ); return 1; }
static int GetSecsIntoEffect( T* p, lua_State *L ) { lua_pushnumber( L, p->GetSecsIntoEffect() ); return 1; }
static int GetEffectDelta( T* p, lua_State *L ) { lua_pushnumber( L, p->GetEffectDelta() ); return 1; }
static int GetDiffuseAlpha( T* p, lua_State *L ) { lua_pushnumber( L, p->GetDiffuseAlpha() ); return 1; }
static int GetName( T* p, lua_State *L ) { lua_pushstring( L, p->GetName() ); return 1; }
@@ -1467,6 +1468,7 @@ public:
ADD_METHOD( GetBaseZoomX )
ADD_METHOD( GetSecsIntoEffect )
ADD_METHOD( GetEffectDelta )
ADD_METHOD( GetDiffuseAlpha )
ADD_METHOD( GetName )
+1
View File
@@ -191,6 +191,7 @@ public:
void SetDiffuseLeftEdge( RageColor c ) { DestTweenState().diffuse[0] = DestTweenState().diffuse[2] = c; };
RageColor GetDiffuse() { return DestTweenState().diffuse[0]; };
RageColor GetDiffuses( int i ) { return DestTweenState().diffuse[i]; };
float GetDiffuseAlpha() { return DestTweenState().diffuse[0].a; };
void SetGlow( RageColor c ) { DestTweenState().glow = c; };
RageColor GetGlow() { return DestTweenState().glow; };