structAllocateInto method

  1. @override
void structAllocateInto(
  1. RaylibTemp<RaylibBase> temp,
  2. MemoryPointer<RType> p,
  3. String key
)
override

Allocates nested pointers into temp under key as needed.

Implementation

@override
void structAllocateInto(RaylibTemp temp, MemoryPointer p, String key) {
  field_meshes.allocate(temp, p, '${key}_meshes', count: meshCount);
  field_materials.allocate(temp, p, '${key}_materials', count: materialCount);
  field_meshMaterial.allocate(temp, p, '${key}_meshMaterial', count: materialCount);
  field_currentPose.allocate(temp, p, '${key}_currentPose', count: skeleton.boneCount);
  field_boneMatrices.allocate(temp, p, '${key}_boneMatrices', count: skeleton.boneCount);
}