RenderableFace constructor

RenderableFace({
  1. dynamic id = 0,
  2. RenderableVertex? v1,
  3. RenderableVertex? v2,
  4. RenderableVertex? v3,
  5. Vector3? normalModel,
  6. List<Vector3>? vertexNormalsModel,
  7. Color? color,
  8. dynamic material,
  9. List<Vector2>? uvs,
  10. dynamic z = 0,
  11. int vertexNormalsLength = 0,
  12. 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;
}