QtCraft API C++ classes QML types Handbook

QcEnchantingMesher Namespace

The enchanting tables' book and runes as parts of the entity mesh (decision E-884, positions from QcEnchantingAura): the book as two quads of its atlas tile (QcRuneGlyphs::bookTile), the two halves hinged at the spine and opened towards the viewer; each rune as a quad cut from the rune pages of the texture atlas (QcRuneGlyphs), facing the viewer about the vertical and glowing in a pale violet. More...

Header: #include <clientcore/entitymeshes/QcEnchantingMesher.h>

Variables

const std::array<quint8, 4> runeTint

Functions

void appendBook(QcEntityMesh &mesh, const QcEnchantingAura::Book &book, QcEntityLight light, const QcEntityMesher::UvLookup &uv)
void appendRune(QcEntityMesh &mesh, const QcEnchantingAura::Rune &rune, const QcVec3 &viewer, const QcEntityMesher::UvLookup &uv)

Detailed Description

Variable Documentation

const std::array<quint8, 4> QcEnchantingMesher::runeTint

The tint of the runes, which are white in the atlas.

Function Documentation

void QcEnchantingMesher::appendBook(QcEntityMesh &mesh, const QcEnchantingAura::Book &book, QcEntityLight light, const QcEntityMesher::UvLookup &uv)

Appends to mesh the two halves of book, drawn from both sides in light, textured by uv.

void QcEnchantingMesher::appendRune(QcEntityMesh &mesh, const QcEnchantingAura::Rune &rune, const QcVec3 &viewer, const QcEntityMesher::UvLookup &uv)

Appends to mesh the rune facing viewer, drawn from both sides, textured by uv.