RenderableFace constructor
RenderableFace({
- dynamic id = 0,
- RenderableVertex? v1,
- RenderableVertex? v2,
- RenderableVertex? v3,
- Vector3? normalModel,
- List<
Vector3> ? vertexNormalsModel, - Color? color,
- dynamic material,
- List<
Vector2> ? uvs, - dynamic z = 0,
- int vertexNormalsLength = 0,
- dynamic renderOrder = 0,
Implementation
RenderableFace({
id = 0,
RenderableVertex? v1,
RenderableVertex? v2,
RenderableVertex? v3,
Vector3? normalModel,
List<Vector3>? vertexNormalsModel,
Color? color,
material,
List<Vector2>? uvs,
z = 0,
this.vertexNormalsLength = 0,
renderOrder = 0,
}) {
this.id = id;
this.v1 = v1 ?? RenderableVertex();
this.v2 = v2 ?? RenderableVertex();
this.v3 = v3 ?? RenderableVertex();
this.normalModel = normalModel ?? Vector3();
this.color = color ?? Color();
this.vertexNormalsModel = vertexNormalsModel ?? [Vector3(), Vector3(), Vector3()];
this.uvs = uvs ?? [Vector2(), Vector2(), Vector2()];
this.z = z;
this.renderOrder = renderOrder;
}