bind GetTexture
This commit is contained in:
@@ -920,6 +920,15 @@ public:
|
|||||||
static int stretchtexcoords( T* p, lua_State *L ) { p->StretchTexCoords( FArg(1),FArg(2) ); return 0; }
|
static int stretchtexcoords( T* p, lua_State *L ) { p->StretchTexCoords( FArg(1),FArg(2) ); return 0; }
|
||||||
static int setstate( T* p, lua_State *L ) { p->SetState( IArg(1) ); return 0; }
|
static int setstate( T* p, lua_State *L ) { p->SetState( IArg(1) ); return 0; }
|
||||||
static int GetAnimationLengthSeconds( T* p, lua_State *L ) { lua_pushnumber( L, p->GetAnimationLengthSeconds() ); return 1; }
|
static int GetAnimationLengthSeconds( T* p, lua_State *L ) { lua_pushnumber( L, p->GetAnimationLengthSeconds() ); return 1; }
|
||||||
|
static int GetTexture( T* p, lua_State *L )
|
||||||
|
{
|
||||||
|
RageTexture *pTexture = p->GetTexture();
|
||||||
|
if( pTexture != NULL )
|
||||||
|
pTexture->PushSelf(L);
|
||||||
|
else
|
||||||
|
lua_pushnil( L );
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
|
|
||||||
/* Texture commands; these could be moved to RageTexture* (even though that's
|
/* Texture commands; these could be moved to RageTexture* (even though that's
|
||||||
* not an Actor) if these are needed for other things that use textures.
|
* not an Actor) if these are needed for other things that use textures.
|
||||||
@@ -939,6 +948,7 @@ public:
|
|||||||
ADD_METHOD( stretchtexcoords );
|
ADD_METHOD( stretchtexcoords );
|
||||||
ADD_METHOD( setstate );
|
ADD_METHOD( setstate );
|
||||||
ADD_METHOD( GetAnimationLengthSeconds );
|
ADD_METHOD( GetAnimationLengthSeconds );
|
||||||
|
ADD_METHOD( GetTexture );
|
||||||
ADD_METHOD( position );
|
ADD_METHOD( position );
|
||||||
ADD_METHOD( loop );
|
ADD_METHOD( loop );
|
||||||
ADD_METHOD( rate );
|
ADD_METHOD( rate );
|
||||||
|
|||||||
Reference in New Issue
Block a user