Thrall, Bryan wrote:
Yes, that is the meaning. However, the top of the hierarchy can use OVERRIDE to
override the PROTECTED state, IIRC.
Actually, PROTECTED keeps the state from being overridden.
The default inheritance is INHERIT, which means that state inherits down
the scene graph unless a child node sets the same state to a different
value. In that case, it doesn't actually inherit at all, and the child
state takes effect.
OVERRIDE, when set on a parent state mode or attribute, means that the
parent's state will override a child's state. If forces parent state to
always be inherited by children, even if they specify the same state
with different values.
Finally, a child has the option of setting state with the PROTECTED mode
bit, which means that even if a parent node sets the same state with
OVERRIDE, the child's state will take effect.
On a tangent... These really seem like misnomers. INHERIT really
_doesn't_ inherit when the child sets the same state, and OVERRIDE
actually forces inheritance to happen. So if I were going to rename
them, I'd have something like this:
old name new name
INHERIT DEFAULT
OVERRIDE INHERIT
PROTECTED PROTECTED
Just a thought.
-Paul
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org