allow setting the effective size of an ActorFrame

This commit is contained in:
Glenn Maynard
2005-09-11 19:00:42 +00:00
parent d9f910f92b
commit a3da8338a6
2 changed files with 3 additions and 0 deletions
+2
View File
@@ -376,6 +376,7 @@ public:
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 setsize( T* p, lua_State *L ) { p->SetSize( FArg(1), FArg(2) ); 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 vanishpoint( T* p, lua_State *L ) { p->SetVanishPoint( FArg(1), FArg(2) ); return 0; }
@@ -395,6 +396,7 @@ public:
{
ADD_METHOD( propagate );
ADD_METHOD( fov );
ADD_METHOD( setsize );
ADD_METHOD( SetUpdateRate );
ADD_METHOD( SetFOV );
ADD_METHOD( vanishpoint );
+1
View File
@@ -54,6 +54,7 @@ public:
void SetUpdateRate( float fUpdateRate ) { m_fUpdateRate = fUpdateRate; }
void SetFOV( float fFOV ) { m_fFOV = fFOV; }
void SetSize( float fX, float fY ) { m_size.x = fX; m_size.y = fY; }
void SetVanishPoint( float fX, float fY) { m_fVanishX = fX; m_fVanishY = fY; }
virtual void SetPropagateCommands( bool b );