OrderedGroup
(order, parent=None)¶A group with partial order.
Ordered groups with a common parent are rendered in ascending order of
their order
field. This is a useful way to render multiple layers of
a scene within a single batch.
Constructor:
__init__
(order, parent=None)¶Create an ordered group.
Parameters: |
|
---|
Methods:
set_state
()Apply the OpenGL state change. set_state_recursive
()Set this group and its ancestry. unset_state
()Repeal the OpenGL state change. unset_state_recursive
()Unset this group and its ancestry.
Methods
OrderedGroup.
set_state
()Apply the OpenGL state change.
The default implementation does nothing.
OrderedGroup.
set_state_recursive
()Set this group and its ancestry.
Call this method if you are using a group in isolation: the parent groups will be called in top-down order, with this class’s set being called last.
OrderedGroup.
unset_state
()Repeal the OpenGL state change.
The default implementation does nothing.
OrderedGroup.
unset_state_recursive
()Unset this group and its ancestry.
The inverse of set_state_recursive.