add GetTexture

This commit is contained in:
Glenn Maynard
2007-02-13 23:27:51 +00:00
parent 0edbf07e08
commit 304402645c
2 changed files with 10 additions and 0 deletions
+9
View File
@@ -63,6 +63,14 @@ public:
static int EnableAlphaBuffer( T* p, lua_State *L ) { p->EnableAlphaBuffer(BArg(1)); return 0; }
static int EnablePreserveTexture( T* p, lua_State *L ) { p->EnablePreserveTexture(BArg(1)); return 0; }
static int SetTextureName( T* p, lua_State *L ) { p->SetTextureName(SArg(1)); return 0; }
static int GetTexture( T* p, lua_State *L )
{
RageTexture *pTexture = p->GetTexture();
if( pTexture == NULL )
return 0;
pTexture->PushSelf(L);
return 1;
}
LunaActorFrameTexture()
{
@@ -71,6 +79,7 @@ public:
ADD_METHOD( EnableAlphaBuffer );
ADD_METHOD( EnablePreserveTexture );
ADD_METHOD( SetTextureName );
ADD_METHOD( GetTexture );
}
};