QtCraft API C++ classes QML types Handbook

QcEntityMesher::ExtrudedSprite Struct

struct QcEntityMesher::ExtrudedSprite

A sprite with thickness: size metres across, in the local space of a flat sprite (x across and centred, y up from 0 to size), one texel thick along z and centred on z = 0. More...

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

Public Variables

QcEntityLight light
QRectF rect
const QcSpriteShape &shape
double size

Detailed Description

Member Variable Documentation

QcEntityLight ExtrudedSprite::light

Light the sprite is drawn in.

QRectF ExtrudedSprite::rect

Atlas rectangle of the sprite's texture.

const QcSpriteShape &ExtrudedSprite::shape

The sprite's opaque texels.

double ExtrudedSprite::size

Width and height in metres.