bind GetNumStates

This commit is contained in:
Glenn Maynard
2007-03-02 06:16:45 +00:00
parent 3d32553a87
commit c5daee77b6
+2
View File
@@ -1302,6 +1302,7 @@ public:
static int play( T* p, lua_State *L ) { p->EnableAnimation(true); return 0; }
static int pause( T* p, lua_State *L ) { p->EnableAnimation(false); return 0; }
static int setstate( T* p, lua_State *L ) { p->SetState(IArg(1)); return 0; }
static int GetNumStates( T* p, lua_State *L ) { LuaHelpers::Push( L, p->GetNumStates() ); return 1; }
static int texturewrapping( T* p, lua_State *L ) { p->SetTextureWrapping(BIArg(1)); return 0; }
static int blend( T* p, lua_State *L ) { p->SetBlendMode( Enum::Check<BlendMode>(L, 1) ); return 0; }
static int zbuffer( T* p, lua_State *L ) { p->SetUseZBuffer(BIArg(1)); return 0; }
@@ -1497,6 +1498,7 @@ public:
ADD_METHOD( play );
ADD_METHOD( pause );
ADD_METHOD( setstate );
ADD_METHOD( GetNumStates );
ADD_METHOD( texturewrapping );
ADD_METHOD( blend );
ADD_METHOD( zbuffer );