generateIndices method

  1. @override
void generateIndices (Uint16List indices)
override

Implementation

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