glooey.drawing.stencil.WhereStencilIs

class glooey.drawing.stencil.WhereStencilIs(parent=None, order=1)[source]

Bases: pyglet.graphics.OrderedGroup

Public Properties

Inherited from Group

visible

batches

Public Methods:

__init__([parent, order])

Create an ordered group.

set_state()

Apply the OpenGL state change.

unset_state()

Repeal the OpenGL state change.

Inherited from OrderedGroup

__init__([parent, order])

Create an ordered group.

__lt__(other)

Return self<value.

__eq__(other)

Return self==value.

__hash__()

Return hash(self).

__repr__()

Return repr(self).

Inherited from Group

__init__([parent, order])

Create an ordered 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 WhereStencilIs.__init__>, 'set_state': <function WhereStencilIs.set_state>, 'unset_state': <function WhereStencilIs.unset_state>, '__doc__': None, '__annotations__': {}})
__eq__(other)

Return self==value.

__hash__()

Return hash(self).

__init__(parent=None, order=1)[source]

Create an ordered group.

Parameters
orderint

Order of this group.

parentGroup

Parent of this group.

__lt__(other)

Return self<value.

__module__ = 'glooey.drawing.stencil'
__repr__()

Return repr(self).

__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