QtCraft API C++ classes QML types Handbook

QcTextureStackBuild Namespace

One switch of texture packs (decision E-301): optionally lists the pack folders again, loads the active packs that are not loaded yet, reads the previews that changed and builds the atlas for the content. More...

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

Classes

struct Preview
struct Request
struct Result

Variables

const qint64 stackMemoryBudget

Functions

QcTextureStackBuild::Result run(const QcTextureStackBuild::Request &request)

Detailed Description

Only reads its request, whose parts are immutable and shared, so it runs in a worker thread while the game goes on with the previous atlas. The generation is handed through so the caller can drop results that a later change made out of date.

Classes

class Preview

A preview image read before, with the modification time of its file. More...

class Request

What one run() is asked to do. More...

class Result

What one run() produced. More...

Variable Documentation

const qint64 QcTextureStackBuild::stackMemoryBudget

Decoded images of all active packs together; packs beyond it (the lowest priority first) are left out with a notice.

Function Documentation

QcTextureStackBuild::Result QcTextureStackBuild::run(const QcTextureStackBuild::Request &request)

Returns the packs, previews and atlases of request; safe in a worker thread.