QtCraft API C++ classes QML types Handbook

QcTextureSynthesizer Class

Generates deterministic pixel-art textures from a QcTextureSpec. More...

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

Static Public Members

QImage synthesize(const QcTextureSpec &spec)
const int tileSize

Detailed Description

Member Function Documentation

[static] QImage QcTextureSynthesizer::synthesize(const QcTextureSpec &spec)

Returns the 16 x 16 texture of spec.

Member Variable Documentation

const int QcTextureSynthesizer::tileSize

Edge of the synthesized textures in pixels.