structReadFrom method

  1. @override
void structReadFrom(
  1. MemoryPointer<RType> p
)
override

Implementation

@override
void structReadFrom(MemoryPointer p) {
  _vertexCount = field_vertexCount.read(p);
  _triangleCount = field_triangleCount.read(p);
  _vertices.readFrom(p, count: verticesCount);
  _texcoords.readFrom(p, count: texcoordsCount);
  _texcoords2.readFrom(p, count: texcoords2Count);
  _normals.readFrom(p, count: normalsCount);
  _tangents.readFrom(p, count: tangentsCount);
  _colors.readFrom(p, count: colorsCount);
  _indices.readFrom(p, count: indicesCount);
  _boneCount = field_boneCount.read(p);
  _boneIndices.readFrom(p, count: boneIndicesCount);
  _boneWeights.readFrom(p, count: boneWeightsCount);
  _animVertices.readFrom(p, count: animVerticesCount);
  _animNormals.readFrom(p, count: animNormalsCount);
  _vaoId = field_vaoId.read(p);
  _vboId.readFrom(p, count: vboIdCount);
}