updateTexCoords method

void updateTexCoords(
  1. Float32List texCoords
)

Replaces every texture coordinate, keeping the vertex count unchanged.

Implementation

void updateTexCoords(Float32List texCoords) {
  _ensureUpdatable('updateTexCoords');
  _checkAttributeLength('texCoords', texCoords.length, 2);
  _cpuTexCoords = Float32List.fromList(texCoords);
  _uploadVertexBytes();
}