Added support notification of Drawable parents of StateSet that event/update callbacks have been called.

This commit is contained in:
Robert Osfield
2005-04-26 09:58:19 +00:00
parent 38bf740ef4
commit 3c90a5f694
3 changed files with 92 additions and 5 deletions

View File

@@ -702,6 +702,7 @@ class OSG_EXPORT Drawable : public Object
ParentList _parents;
friend class Node;
friend class Geode;
friend class StateSet;
ref_ptr<StateSet> _stateset;
@@ -720,7 +721,15 @@ class OSG_EXPORT Drawable : public Object
mutable GLObjectList _vboList;
ref_ptr<UpdateCallback> _updateCallback;
unsigned int _numChildrenRequiringUpdateTraversal;
void setNumChildrenRequiringUpdateTraversal(unsigned int num);
unsigned int getNumChildrenRequiringUpdateTraversal() const { return _numChildrenRequiringUpdateTraversal; }
ref_ptr<EventCallback> _eventCallback;
unsigned int _numChildrenRequiringEventTraversal;
void setNumChildrenRequiringEventTraversal(unsigned int num);
unsigned int getNumChildrenRequiringEventTraversal() const { return _numChildrenRequiringEventTraversal; }
ref_ptr<CullCallback> _cullCallback;
ref_ptr<DrawCallback> _drawCallback;
};