From c0bd295db279122f40bffbf47c3d57906a29581f Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Mon, 16 Apr 2007 12:21:07 +0000 Subject: [PATCH] Updated wrappers --- src/osgWrappers/osg/State.cpp | 10 ++++++++++ src/osgWrappers/osgUtil/StateGraph.cpp | 4 ++++ 2 files changed, 14 insertions(+) diff --git a/src/osgWrappers/osg/State.cpp b/src/osgWrappers/osg/State.cpp index 15f7d10b1..516ee04d5 100644 --- a/src/osgWrappers/osg/State.cpp +++ b/src/osgWrappers/osg/State.cpp @@ -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, diff --git a/src/osgWrappers/osgUtil/StateGraph.cpp b/src/osgWrappers/osgUtil/StateGraph.cpp index 8c12b9a76..f0a6fb422 100644 --- a/src/osgWrappers/osgUtil/StateGraph.cpp +++ b/src/osgWrappers/osgUtil/StateGraph.cpp @@ -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);