Q009

Untitled

Mar 22nd, 2014
123
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. struct glyph
  2. {
  3. uint8_t character, x, y;
  4. uint8_t w, h, xOffset, yOffset, xAdvance;
  5. };
  6.  
  7.  
  8. sscanf_s(parseBuf, "char id=%hhu x=%hhu y=%hhu width=%hhu height=%hhu xoffset=%hhu yoffset=%hhu xadvance=%hhu",
  9. &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