MeshD constructor

MeshD({
  1. StructPointer<MeshD>? op,
  2. int vertexCount = 0,
  3. int triangleCount = 0,
  4. int boneCount = 0,
  5. List<double>? vertices,
  6. List<double>? texcoords,
  7. List<double>? texcoords2,
  8. List<double>? normals,
  9. List<double>? tangents,
  10. List<int>? colors,
  11. List<int>? indices,
  12. List<int>? boneIndices,
  13. List<double>? boneWeights,
  14. List<double>? animVertices,
  15. List<double>? animNormals,
  16. int vaoId = 0,
  17. List<int>? vboId,
})

Implementation

MeshD({
  super.op,
  int vertexCount = 0,
  int triangleCount = 0,
  int boneCount = 0,
  List<double>? vertices,
  List<double>? texcoords,
  List<double>? texcoords2,
  List<double>? normals,
  List<double>? tangents,
  List<int>? colors,
  List<int>? indices,
  List<int>? boneIndices,
  List<double>? boneWeights,
  List<double>? animVertices,
  List<double>? animNormals,
  int vaoId = 0,
  List<int>? vboId,
}) :
  _vertexCount = vertexCount,
  _triangleCount = triangleCount,
  _boneCount = boneCount,
  _vaoId = vaoId
{
  _vertices = field_vertices.live(() => op, vertices ?? []);
  _texcoords = field_texcoords.live(() => op, texcoords ?? []);
  _texcoords2 = field_texcoords2.live(() => op, texcoords2 ?? []);
  _normals = field_normals.live(() => op, normals ?? []);
  _tangents = field_tangents.live(() => op, tangents ?? []);
  _colors = field_colors.live(() => op, colors ?? []);
  _indices = field_indices.live(() => op, indices ?? []);
  _boneIndices = field_boneIndices.live(() => op, boneIndices ?? []);
  _boneWeights = field_boneWeights.live(() => op, boneWeights ?? []);
  _animVertices = field_animVertices.live(() => op, animVertices ?? []);
  _animNormals = field_animNormals.live(() => op, animNormals ?? []);
  _vboId = field_vboId.live(() => op, vboId ?? []);
}