QcMobIcon Namespace
The handbook icon of a creature (decision E-944): its model standing in its rest pose, turned so that its face looks out of the icon, drawn from above at an angle like a block icon (QcBlockIcon) and scaled to fill it. More...
| Header: | #include <clientcore/icons/QcMobIcon.h> |
Functions
| QImage | render(const QcContentRegistry &content, const QcMobDefinition &mob, const QcTextureAtlas &atlas, const std::array<QImage, 6> &shadedAtlas, int size) |
Detailed Description
Box creatures show their boxes, skeleton creatures the head of their model and outfit; tinted layers take the default colours of QcAppearance (a creature's own look, such as a villager's, comes from the server only while the world runs).
Function Documentation
QImage QcMobIcon::render(const QcContentRegistry &content, const QcMobDefinition &mob, const QcTextureAtlas &atlas, const std::array<QImage, 6> &shadedAtlas, int size)
Returns the icon of the creature mob of content, size pixels across, textured from atlas; shadedAtlas is QcBlockIcon::shadedAtlases of the atlas level the icons are drawn from; returns a transparent icon for a creature without a model.