writeInto method

  1. @override
void writeInto(
  1. FontC p
)
override

Implementation

@override
void writeInto(FontC p) {
  p.baseSize = baseSize;
  p.glyphCount = glyphCount;
  p.glyphPadding = glyphPadding;
  texture.writeInto(p.texture);

  for (int i = 0; i < recs.length; i++) {
    recs[i].writeInto((p.recs + i).ref);
  }

  for (int i = 0; i < glyphs.length; i++) {
    glyphs[i].writeInto((p.glyphs + i).ref);
  }
}