RenderMesh constructor

RenderMesh(
  1. int vertexCount,
  2. int faceCount
)

Implementation

RenderMesh(int vertexCount, int faceCount) {
  positions = Float32List(vertexCount * 2);
  positionsZ = Float32List(vertexCount);
  texcoords = Float32List(vertexCount * 2);
  colors = Int32List(vertexCount);
  indices = List<Triangle?>.filled(faceCount, null);
}