MeshD constructor
MeshD({
- Pointer<
MeshC> ? originalPointer, - 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<
double> ? animVertices, - List<
double> ? animNormals, - List<
int> ? boneIds, - List<
double> ? boneWeights, - List<
MatrixD> ? boneMatrices, - int vaoId = 0,
- List<
int> ? vboId,
Implementation
MeshD({
super.originalPointer,
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<double>? animVertices,
List<double>? animNormals,
List<int>? boneIds,
List<double>? boneWeights,
List<MatrixD>? boneMatrices,
int vaoId = 0,
List<int>? vboId,
}) :
_vertexCount = vertexCount,
_triangleCount = triangleCount,
_boneCount = boneCount,
_vaoId = vaoId
{
_vertices = .new(vertices ?? [], originalPointer?.ref.vertices);
_texcoords = .new(texcoords ?? [], originalPointer?.ref.texcoords);
_texcoords2 = .new(texcoords2 ?? [], originalPointer?.ref.texcoords2);
_normals = .new(normals ?? [], originalPointer?.ref.normals);
_tangents = .new(tangents ?? [], originalPointer?.ref.tangents);
_colors = .new(colors ?? [], originalPointer?.ref.colors);
_indices = .new(indices ?? [], originalPointer?.ref.indices);
_animVertices = .new(animVertices ?? [], originalPointer?.ref.animVertices);
_animNormals = .new(animNormals ?? [], originalPointer?.ref.animNormals);
_boneIds = .new(boneIds ?? [], originalPointer?.ref.boneIds);
_boneWeights = .new(boneWeights ?? [], originalPointer?.ref.boneWeights);
_boneMatrices = .new(boneMatrices ?? [], originalPointer?.ref.boneMatrices);
_vboId = .new(vboId ?? [], originalPointer?.ref.vboId);
}