TextureGroup¶
-
class
TextureGroup¶ -
-
property
name¶ The name of the group.
- Type
- Raises
ReadOnlyError -- If
Databaseis 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 (
NotEmptyErroris raised otherwise), useforceto force deletion of non empty groups.- Parameters
force (bool) -- Force the deletion of the group even if it contains textures.
- Raises
NotEmptyError -- If
forceisFalseand the group contains textures.ReadOnlyError -- If
Databaseis 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
Databaseis in read only mode.
-
property