Fixed bug associated with complex RenderBin setup.

This commit is contained in:
Robert Osfield
2007-04-16 12:18:56 +00:00
parent 68a6882d04
commit 9db23e0b22
4 changed files with 117 additions and 3 deletions

View File

@@ -120,10 +120,16 @@ class OSG_EXPORT State : public Referenced
/** Pop stateset off state stack.*/
void popStateSet();
/** 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().*/
void popAllStateSets();
/** Insert stateset onto state stack.*/
void insertStateSet(unsigned int pos,const StateSet* dstate);
/** Pop stateset off state stack.*/
void removeStateSet(unsigned int pos);
/** Get the number of StateSet's on the StateSet stack.*/
unsigned int getStateSetStackSize() { return _stateStateStack.size(); }