updateVertexUVBuffer method

void updateVertexUVBuffer(
  1. Float32List buffer
)

Implementation

void updateVertexUVBuffer(Float32List buffer) {
  int readIdx = vertexUVOffset;
  int writeIdx = 0;
  int stride = vertexStride;

  Float32List? v = _vertices;
  for (int i = 0; i < _vertexCount; i++) {
    buffer[writeIdx++] = v![readIdx];
    buffer[writeIdx++] = v[readIdx + 1];
    readIdx += stride;
  }
}