Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- struct glyph
- {
- uint8_t character, x, y;
- uint8_t w, h, xOffset, yOffset, xAdvance;
- };
- sscanf_s(parseBuf, "char id=%hhu x=%hhu y=%hhu width=%hhu height=%hhu xoffset=%hhu yoffset=%hhu xadvance=%hhu",
- &newGlyph.character, &newGlyph.x, &newGlyph.y, &newGlyph.w, &newGlyph.h, &newGlyph.xOffset, &newGlyph.yOffset, &newGlyph.xAdvance)
Advertisement
Add Comment
Please, Sign In to add comment