QtCraft API C++ classes QML types Handbook

QcTextureStackBuild::Result Struct

struct QcTextureStackBuild::Result

What one run() produced. More...

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

Public Variables

std::shared_ptr<const QcTextureAtlas> atlas
qint64 buildMs
QList<QcTexturePackLibrary::Entry> entries
quint64 generation
qint64 loadMs
std::shared_ptr<const QcMaterialAtlas> materials
qint64 materialsMs
QStringList missing
QStringList overBudget
QHash<QString, QcTextureStackBuild::Preview> previews
QcTexturePackStack stack

Detailed Description

Member Variable Documentation

std::shared_ptr<const QcTextureAtlas> Result::atlas

The colour atlas (the request's colour when it had one); null without content.

qint64 Result::buildMs

The colour atlas and the maps together; the maps alone in materialsMs.

QList<QcTexturePackLibrary::Entry> Result::entries

The pack folders, listed again or taken over from the request.

quint64 Result::generation

The request's generation.

qint64 Result::loadMs

Milliseconds for listing and loading the packs and reading the previews.

std::shared_ptr<const QcMaterialAtlas> Result::materials

The atlas's material maps, handed on apart from it: whoever uploads them lets them go (decision E-912). Null without options.materials or with colourOnly.

qint64 Result::materialsMs

Milliseconds for the material maps.

QStringList Result::missing

Ids without a usable pack (gone from disk, invalid manifest).

QStringList Result::overBudget

Ids left out because the active packs together exceed the memory budget.

QHash<QString, QcTextureStackBuild::Preview> Result::previews

Previews by pack folder (unchanged ones taken over from the request).

QcTexturePackStack Result::stack

The loaded packs within the budget, the highest priority first.