QtCraft API C++ classes QML types Handbook

QcTextureAtlasOptions Struct

Limits and settings for building a QcTextureAtlas. More...

Header: #include <clientcore/textures/QcTextureAtlas.h>

Public Variables

bool materials
int maxExtent
int maxTileSize
qint64 memoryBudget
int threads

Detailed Description

Member Variable Documentation

bool QcTextureAtlasOptions::materials

The material maps (QcMaterialAtlas, decision E-908) are built for this atlas: the packs' map files are checked against the texture names (problems()). The maps themselves are built apart from the atlas (QcTextureStackBuild) and never kept with it (decision E-912).

int QcTextureAtlasOptions::maxExtent

Largest texture edge the GPU takes (QRhi::TextureSizeMax; 8192 until the renderer knows).

int QcTextureAtlasOptions::maxTileSize

Largest tile size used: textures (QcTexturePackLoader::Limits::maxStoredResolution); smaller for atlases that only feed icons.

qint64 QcTextureAtlasOptions::memoryBudget

Bytes of all mip levels together.

int QcTextureAtlasOptions::threads

Threads that draw the tiles; 0: half the cores, at most 8.