working on a CelShading command that may or may not end up working; commented out for now

This commit is contained in:
AJ Kelly
2011-03-03 00:03:56 -06:00
parent 367cf09d81
commit 0771d24022
2 changed files with 5 additions and 0 deletions
+3
View File
@@ -29,6 +29,7 @@ Model::Model()
m_fDefaultAnimationRate = 1;
m_fCurAnimationRate = 1;
m_bLoop = true;
m_bDrawCelShaded = false;
m_pTempGeometry = NULL;
}
@@ -779,6 +780,7 @@ public:
static int loop( T* p, lua_State *L ) { p->SetLoop(BArg(1)); return 0; }
static int rate( T* p, lua_State *L ) { p->SetRate(FArg(1)); return 0; }
static int GetNumStates( T* p, lua_State *L ) { lua_pushnumber( L, p->GetNumStates() ); return 1; }
//static int CelShading( T* p, lua_State *L ) { p->SetCelShading(BArg(1)); return 0; }
LunaModel()
{
@@ -789,6 +791,7 @@ public:
ADD_METHOD( rate );
// sm-ssc adds:
ADD_METHOD( GetNumStates );
//ADD_METHOD( CelShading );
}
};
+2
View File
@@ -39,6 +39,7 @@ public:
virtual void DrawPrimitives();
void DrawCelShaded();
void SetCelShading( bool bShading ) { m_bDrawCelShaded = bShading; }
virtual int GetNumStates() const;
virtual void SetState( int iNewState );
@@ -81,6 +82,7 @@ private:
float m_fDefaultAnimationRate;
float m_fCurAnimationRate;
bool m_bLoop;
bool m_bDrawCelShaded; // for Lua models
};
#endif