28 if (buf[0] ==
'#' || buf[0] ==
'\0')
30 if (
split_string(buf, cps,
sizeof(cps)/
sizeof(*cps),
':') != 6)
31 LOG(
llevError,
"Bad line in image_info file %s, ignoring line:\n %s", filename.c_str(),
buf);
36 if (cps[2][0] !=
'\0') {
T * get(const Key &name)
Get a named asset.
virtual void load(BufferReader *reader, const std::string &filename) override
Load assets from the specified reader.
void LOG(LogLevel logLevel, const char *format,...)
Logs a message to stderr, or to file.
Global type definitions and header inclusions.
size_t split_string(char *str, char *array[], size_t array_size, char sep)
Splits a string delimited by passed in sep value into characters into an array of strings...
Image-related structures.
char * prefix
Faceset short name, used in pictures names (base, clsc).
char * extension
Supplementary description.
char * size
Human-readable set size.
char * comment
Human-readable comment for this set.
Available facesets for clients.
struct face_sets * fallback
Faceset to use when an image is not found in this faceset.
char * fullname
Full faceset name.
FacesetLoader(Facesets *facesets)
char * bufferreader_next_line(BufferReader *br)
Return the next line in the buffer, as separated by a newline.
Information about one face set.
T * define(const Key &name, T *asset)
Define an asset, erasing an existing one.