texture_atlas
¶
Classes:
-
TextureAtlas– -
TextureAtlasCollection– -
TextureAtlasRegion– -
TextureBatchGroup– -
TextureBatchLayout–
Functions:
__all__
module-attribute
¶
__all__ = ['TextureAtlas', 'TextureAtlasCollection', 'TextureAtlasRegion', 'TextureBatchGroup', 'TextureBatchLayout', 'build_texture_atlas']
TextureAtlas
dataclass
¶
TextureAtlasCollection
dataclass
¶
TextureAtlasCollection(atlases: tuple[TextureAtlas, ...], regions: dict[str, TextureAtlasRegion], _layout_cache: dict[tuple[int, int], _LayoutCacheEntry] = dict())
TextureAtlasRegion
dataclass
¶
TextureBatchGroup
dataclass
¶
TextureBatchGroup(texture: ArepyTexture, entity_indices: Int64Array, source_x: Float32Array, source_y: Float32Array, source_width: Float32Array, source_height: Float32Array, uses_dense_entity_order: bool = False)
Attributes:
-
entity_indices(Int64Array) – -
source_height(Float32Array) – -
source_width(Float32Array) – -
source_x(Float32Array) – -
source_y(Float32Array) – -
texture(ArepyTexture) – -
uses_dense_entity_order(bool) –
TextureBatchLayout
dataclass
¶
TextureBatchLayout(groups: tuple[TextureBatchGroup, ...], default_dest_width: Float64Array, default_dest_height: Float64Array)
Attributes:
-
default_dest_height(Float64Array) – -
default_dest_width(Float64Array) – -
groups(tuple[TextureBatchGroup, ...]) –
build_texture_atlas
¶
build_texture_atlas(asset_store: 'AssetStore', renderer: 'Renderer2D', *, max_size: tuple[int, int] = (2048, 2048), padding: int = 1) -> TextureAtlasCollection