add SetFOV

This commit is contained in:
Chris Danford
2005-04-01 21:00:14 +00:00
parent 2480c02254
commit 411f376e75
+6 -1
View File
@@ -11,8 +11,10 @@ class LunaActorFrame : public LunaActor<T>
public:
LunaActorFrame() { LUA->Register( Register ); }
static int propagate( T* p, lua_State *L ) { p->SetPropagateCommands( !!IArg(1) ); return 0; }
static int propagate( T* p, lua_State *L ) { p->SetPropagateCommands( !!IArg(1) ); return 0; }
static int fov( T* p, lua_State *L ) { p->SetFOV( FArg(1) ); return 0; }
static int SetUpdateRate( T* p, lua_State *L ) { p->SetUpdateRate( FArg(1) ); return 0; }
static int SetFOV( T* p, lua_State *L ) { p->SetFOV( FArg(1) ); return 0; }
static int GetChild( T* p, lua_State *L )
{
Actor *pChild = p->GetChild( SArg(1) );
@@ -27,7 +29,9 @@ public:
static void Register(lua_State *L)
{
ADD_METHOD( propagate )
ADD_METHOD( fov )
ADD_METHOD( SetUpdateRate )
ADD_METHOD( SetFOV )
ADD_METHOD( GetChild )
ADD_METHOD( GetNumChildren )
LunaActor<T>::Register( L );
@@ -75,6 +79,7 @@ public:
virtual void HurryTweening( float factor );
void SetUpdateRate( float fUpdateRate ) { m_fUpdateRate = fUpdateRate; }
void SetFOV( float fFOV ) { m_fFOV = fFOV; }
void SetPropagateCommands( bool b );