glooey.drawing.stencil.StencilGroup

class glooey.drawing.stencil.StencilGroup(parent=None)[source]

Bases: pyglet.graphics.Group

Public Properties

Inherited from Group

visible

batches

Public Methods:

__init__([parent])

Create a group.

set_state()

Apply the OpenGL state change.

unset_state()

Repeal the OpenGL state change.

Inherited from Group

__init__([parent])

Create a group.

__lt__(other)

Return self<value.

set_state()

Apply the OpenGL state change.

unset_state()

Repeal the OpenGL state change.

set_state_recursive()

Set this group and its ancestry.

unset_state_recursive()

Unset this group and its ancestry.


__dict__ = mappingproxy({'__module__': 'glooey.drawing.stencil', '__init__': <function StencilGroup.__init__>, 'set_state': <function StencilGroup.set_state>, 'unset_state': <function StencilGroup.unset_state>, '__doc__': None, '__annotations__': {}})
__init__(parent=None)[source]

Create a group.

Parameters
parentGroup

Group to contain this group; its state will be set before this state’s.

visiblebool

Determines whether this group is visible in any of the batches it is assigned to.

batcheslist

Read Only. A list of which batches this group is a part of.

__lt__(other)

Return self<value.

__module__ = 'glooey.drawing.stencil'
__weakref__

list of weak references to the object (if defined)

property batches
set_state()[source]

Apply the OpenGL state change.

The default implementation does nothing.

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.

unset_state()[source]

Repeal the OpenGL state change.

The default implementation does nothing.

unset_state_recursive()

Unset this group and its ancestry.

The inverse of set_state_recursive.

property visible