Updated wrappers

This commit is contained in:
Robert Osfield
2007-04-16 12:21:07 +00:00
parent 47add5a42c
commit c0bd295db2
2 changed files with 14 additions and 0 deletions

View File

@@ -82,6 +82,16 @@ BEGIN_OBJECT_REFLECTOR(osg::State)
__void__popAllStateSets,
"pop all statesets off state stack, ensuring it is empty ready for the next frame. ",
"Note, to return OpenGL to default state, one should do any state.popAllStatSets(); state.apply(). ");
I_Method2(void, insertStateSet, IN, unsigned int, pos, IN, const osg::StateSet *, dstate,
Properties::NON_VIRTUAL,
__void__insertStateSet__unsigned_int__C5_StateSet_P1,
"Insert stateset onto state stack. ",
"");
I_Method1(void, removeStateSet, IN, unsigned int, pos,
Properties::NON_VIRTUAL,
__void__removeStateSet__unsigned_int,
"Pop stateset off state stack. ",
"");
I_Method0(unsigned int, getStateSetStackSize,
Properties::NON_VIRTUAL,
__unsigned_int__getStateSetStackSize,

View File

@@ -121,6 +121,10 @@ BEGIN_OBJECT_REFLECTOR(osgUtil::StateGraph)
__void__moveToRootStateGraph__osg_State_R1__StateGraph_P1_S,
"",
"");
I_StaticMethod2(int, numToPop, IN, osg::State &, state, IN, osgUtil::StateGraph *, sg_curr,
__int__numToPop__osg_State_R1__StateGraph_P1_S,
"",
"");
I_SimpleProperty(float, AverageDistance,
__float__getAverageDistance,
0);