QtCraft API C++ classes QML types Handbook

QcTexturePackLoader::Limits Struct

struct QcTexturePackLoader::Limits

Limits a pack must keep, checked while loading. More...

Header: #include <clientcore/texturepacks/QcTexturePackLoader.h>

Public Variables

qint64 mapMemoryBudget
int mapResolution
bool materialMaps
int maxFiles
int maxFrames
qint64 maxImageFileBytes
int maxMapFiles
int maxNamespaces
int maxProblems
qint64 maxSpecFileBytes
int maxStoredResolution
qint64 memoryBudget

Detailed Description

Member Variable Documentation

qint64 Limits::mapMemoryBudget

Decoded RGBA bytes of all material maps of one pack.

int Limits::mapResolution

Largest edge length a material map is stored at.

bool Limits::materialMaps

The labPBR material maps <name>_n.png, <name>_s.png (decision E-908): read only when the realistic mode draws them, after the colour textures and with their own file limit and budget, so they never push a colour texture out; stored at most mapResolution wide.

int Limits::maxFiles

Files read below textures/.

int Limits::maxFrames

Vertical strips of animation frames (decision E-878): at most this many frames.

qint64 Limits::maxImageFileBytes

Largest PNG file in bytes.

int Limits::maxMapFiles

Material map files read.

int Limits::maxNamespaces

Namespace folders read below textures/.

int Limits::maxProblems

Problems kept per pack; the rest is counted in one line.

qint64 Limits::maxSpecFileBytes

Largest procedural spec (.json) in bytes.

int Limits::maxStoredResolution

Images above this edge length are stored scaled down (the atlas never uses more, E-300).

qint64 Limits::memoryBudget

Decoded RGBA bytes of all images of one pack.