QcEntityMesher::ItemLook Struct
struct QcEntityMesher::ItemLookAppearance of an item: a small cube with the block's face textures for placeable cube blocks, otherwise a sprite of the item texture. More...
| Header: | #include <clientcore/entitymeshes/QcEntityMesher.h> |
Public Variables
| QList<QcAabb> | boxes |
| bool | cube |
| QcEntityMesher::HeldPlacement | drawn |
| std::array<QString, 6> | faces |
| QcEntityMesher::HeldPlacement | firstPerson |
| float | glow |
| QcHoldGrip | grip |
| std::shared_ptr<const QcSpriteShape> | gripShape |
| bool | launcher |
| std::shared_ptr<const QcSpriteShape> | shape |
| QString | sprite |
| QcEntityMesher::HeldPlacement | swing |
| QcEntityMesher::HeldPlacement | thirdPerson |
| QcEntityMesher::HeldPlacement | thirdPersonDrawn |
Detailed Description
Member Variable Documentation
QList<QcAabb> ItemLook::boxes
Boxes of a block shape (0..1) drawn instead of the full cube (stairs, fences); empty for cubes.
bool ItemLook::cube
Drawn as a small cube (or the boxes of its shape) instead of a sprite.
QcEntityMesher::HeldPlacement ItemLook::drawn
The first-person placement of a drawn launcher (QcHoldDisplay::drawn, decision E-984); the hand blends towards it by HandPose::aim.
std::array<QString, 6> ItemLook::faces
Indexed by QcBlockFace; used for cubes.
QcEntityMesher::HeldPlacement ItemLook::firstPerson
Placement of the item held in first person.
float ItemLook::glow
Light the item gives off itself (0..1, a torch): it is never drawn darker than that.
QcHoldGrip ItemLook::grip
Where a hand takes a sprite; a block is taken by the middle of its boxes.
std::shared_ptr<const QcSpriteShape> ItemLook::gripShape
The shape the grip is taken from, if not shape: a draw stage is held where the resting sprite is, so the bow does not shift in the hand from stage to stage.
bool ItemLook::launcher
It is a launcher: drawn, it may show the sprites of its stages (QcFigureLook::atDraw, decision E-987).
std::shared_ptr<const QcSpriteShape> ItemLook::shape
The sprite's opaque texels; held and dropped sprites with a shape are drawn with thickness, without one flat.
QString ItemLook::sprite
Texture of the sprite; used when not a cube.
QcEntityMesher::HeldPlacement ItemLook::swing
The first-person placement in the middle of a swing (QcHoldDisplay::swing); the hand blends towards it by HandPose::swing.
QcEntityMesher::HeldPlacement ItemLook::thirdPerson
Placement of the item held by a figure seen from outside.
QcEntityMesher::HeldPlacement ItemLook::thirdPersonDrawn
The placement of a launcher in the fist of a figure that aims it (QcHoldDisplay::thirdPersonDrawn, BodyPose::armsAimed).