generateIndices method

  1. @override
void generateIndices(
  1. Uint16List indices
)
override

Implementation

@override
void generateIndices(Uint16List indices) {
  var index = 0;
  for (var i = 1; i <= _segments; i++) {
    indices[index] = i;
    indices[index + 1] = i + 1;
    indices[index + 2] = 0;
    index += 3;
  }
  assert(index == indexCount);
}