TextureGroup
- class TextureGroup
-
- property name
The name of the group.
- Type
- Raises
ReadOnlyError -- If
Database
is in read only mode.
- list_textures()
List the textures of this group.
- remove(force=False)
Delete a texture group
Note
By default, only empty groups can be deleted (
NotEmptyError
is raised otherwise), useforce
to force deletion of non empty groups.- Parameters
force (bool) -- Force the deletion of the group even if it contains textures.
- Raises
NotEmptyError -- If
force
isFalse
and the group contains textures.ReadOnlyError -- If
Database
is in read only mode.
- import_from_encoded_data(data)
Import a texture from encoded data (e.g. jpg, png, etc...).
- Parameters
data (bytes) -- Encoded image data.
- Returns
The created texture.
- Return type
- Raises
ReadOnlyError -- If
Database
is in read only mode.