structAllocateInto method

  1. @override
void structAllocateInto(
  1. RaylibTemp temp,
  2. WasmStructPointer<FontD> p,
  3. String key
)
override

Allocates nested pointers into temp under key as needed.

Implementation

@override
void structAllocateInto(RaylibTemp temp, WasmStructPointer<FontD> p, String key) {
  if (recs.isNotEmpty) _recs.ptr = temp.Rectangle$.Raw(recs.length);
  if (glyphs.isNotEmpty) _glyphs.ptr = temp.GlyphInfo$.Raw(glyphs.length);
}