MeshD constructor
MeshD({
- StructPointer<
MeshD> ? 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,
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 ?? []);
}