TextureGroup Class

Inheritance diagram of TextureGroup

class TextureGroup(texture, parent=None)

A group that enables and binds a texture.

Texture groups are equal if their textures’ targets and names are equal.

Constructor:

__init__(texture, parent=None)

Create a texture group.

Parameters:
  • texture (Texture) – Texture to bind.
  • parent (Group) – Parent group.

Methods:

set_state()
set_state_recursive() Set this group and its ancestry.
unset_state()
unset_state_recursive() Unset this group and its ancestry.

Methods

TextureGroup.set_state()
TextureGroup.unset_state()

Inherited members

Methods

TextureGroup.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.

TextureGroup.unset_state_recursive()

Unset this group and its ancestry.

The inverse of set_state_recursive.

Table Of Contents

Previous topic

OrderedGroup Class

Next topic

draw Function