setVertexUV method

void setVertexUV(
  1. int vertex,
  2. num u,
  3. num v
)

Set the UV values of a vertex.

The UV values define the pixel location in a 0.0 to 1.0 coordinate system of the BitmapData.

Implementation

void setVertexUV(int vertex, num u, num v) {
  final offset = vertex << 2;
  vxList[offset + 2] = u.toDouble();
  vxList[offset + 3] = v.toDouble();
}