Class: QgsTextureAtlas¶
Encapsulates a texture atlas.
QgsTextureAtlas
contains the packed regions for aggregated
texture atlases, and optionally the packed texture map.
See QgsTextureAtlasGenerator
for a class which automatically
creates texture atlases.
Added in version 4.0.
Methods
Returns the total size required for the atlas, i.e. the total size for the packed images and rectangles. |
|
Returns the number of textures in the atlas. |
|
Returns |
|
Returns the packed rectangle for the texture with the specified index. |
|
Renders the combined texture atlas, containing all source images. |
|
Renders a debug texture. |
- class qgis._3d.QgsTextureAtlas[source]¶
Bases:
object
- atlasSize(self) QSize [source]¶
Returns the total size required for the atlas, i.e. the total size for the packed images and rectangles.
- Return type:
QSize
- rect(self, index: int) QRect [source]¶
Returns the packed rectangle for the texture with the specified
index
.- Raises:
IndexError – if no texture with the specified index exists.
- Parameters:
index (int)
- Return type:
QRect