QtCraft API C++ classes QML types Handbook

QcTextureDetail::Params Struct

struct QcTextureDetail::Params

How much detail a pattern gains above 16 x 16. More...

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

Public Variables

double bevel
double grain
bool rimOnly
bool smooth
bool strokes

Detailed Description

Member Variable Documentation

double Params::bevel

Strength of the bevel along edges (share of the colour, 0..1).

double Params::grain

Strength of the fine grain (share of the colour, 0..1).

bool Params::rimOnly

Bevel only the outline (edges towards transparent pixels), not edges towards darker pixels inside the picture; on for cut-out shapes (decision E-1000). A texture definition's "detail" does not change it.

bool Params::smooth

Smooth diagonal and round outlines while enlarging; off for patterns of straight lines.

bool Params::strokes

With smooth: the outline follows strokes between the pixels of the 16 x 16 picture (QcTextureOutline) instead of Scale2x; on for tools and weapons (decision E-1000), which are icons that never repeat, so the pixels beyond their border count as clear. A texture definition's "detail" does not change it.