143 LOG(
llevError,
"get_face_fallback called with unused set (%d)?\n", faceset);
146 if (imageno < fs->allocated && fs->
faces[imageno].
data)
160 fprintf(stderr,
"id name smooth\n");
face_info * faces
images in this faceset
Face * smoothface
Smoothed face for this, NULL for none.
void LOG(LogLevel logLevel, const char *format,...)
Logs a message to stderr, or to file.
New face structure - this enforces the notion that data is face by face only - you can not change the...
int get_face_fallback(int faceset, uint16_t imageno)
This returns the set we will actually use when sending a face.
face_sets * find_faceset(int id)
void dump_faces(void)
Dump all faces to stderr, for debugging purposes.
Global type definitions and header inclusions.
const char * get_colorname(uint8_t index)
const Face * blank_face
Following can just as easily be pointers, but it is easier to keep them like this.
AssetsManager * getManager()
Faces * faces()
Get faces.
Image-related structures.
uint8_t * data
Image data.
char * prefix
Faceset short name, used in pictures names (base, clsc).
int find_smooth(const Face *face, const Face **smoothed)
Find the smooth face for a given face.
uint16_t number
This is the image unique identifier.
int is_valid_faceset(int fsn)
Checks specified faceset is valid.
static const char *const colorname[]
The only thing this table is used for now is to translate the colorname in the magicmap field of the ...
struct face_sets * fallback
Faceset to use when an image is not found in this faceset.
uint8_t find_color(const char *name)
Finds a color by name.
C function wrappers to interact with assets.
Information about one face set.
sstring name
Face name, as used by archetypes and such.
void each(std::function< void(T *)> op)
Apply a function to each asset.